Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot register when using type hintings #84

Open
lucidfrontier45 opened this issue Jan 20, 2016 · 1 comment
Open

cannot register when using type hintings #84

lucidfrontier45 opened this issue Jan 20, 2016 · 1 comment

Comments

@lucidfrontier45
Copy link

If I add type hints to get or post etc like,

class API(FlaskView):
  def get(self) -> str:
    return "OK"

it gives the following error.

ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them

Looks like you getfullargspec is needed insted of getargspec.

@hoatle
Copy link

hoatle commented Oct 11, 2017

@lucidfrontier45 type hints are supported by our fork project here, you can check this out http://flask-classful.teracy.org/#type-hints-support-for-python-3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants