Skip to content

Wrong typing for teardown_request decorator #4093

@pcorpet

Description

@pcorpet

According to the doc, the return values of teardown functions are ignored. However in flask 2.0.1 the decorator only accept functions returning a Response.

It should accept to decorate functions returning any type.

Environment:

  • Python version: 3.9
  • Flask version: 2.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions