Skip to content

cannot register when using type hintings #84

@lucidfrontier45

Description

@lucidfrontier45

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions