Skip to content

cannot register when using type hintings #84

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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