bauerji / flask-pydantic

flask extension for integration with the awesome pydantic package
MIT License
368 stars 58 forks source link

Untyped decorator makes function "index" untyped #48

Closed skhaz closed 2 years ago

skhaz commented 2 years ago

I am using Flask-Pydantic with mypy and I got the error

error: Untyped decorator makes function "index" untyped

on the line @validate()

@blueprint.post("/")
@validate()
def index(body: RequestBodyModel) -> UserResponse: