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