We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
teardown_request
1 parent d81aa70 commit f7adb2cCopy full SHA for f7adb2c
CHANGES.rst
@@ -5,6 +5,8 @@ Version 2.0.2
5
6
Unreleased
7
8
+- Fix type annotation for ``teardown_request``. :issue:`4093`
9
+
10
11
Version 2.0.1
12
-------------
src/flask/typing.py
@@ -37,7 +37,7 @@
37
AfterRequestCallable = t.Callable[["Response"], "Response"]
38
BeforeRequestCallable = t.Callable[[], None]
39
ErrorHandlerCallable = t.Callable[[Exception], ResponseReturnValue]
40
-TeardownCallable = t.Callable[[t.Optional[BaseException]], "Response"]
+TeardownCallable = t.Callable[[t.Optional[BaseException]], None]
41
TemplateContextProcessorCallable = t.Callable[[], t.Dict[str, t.Any]]
42
TemplateFilterCallable = t.Callable[[t.Any], str]
43
TemplateGlobalCallable = t.Callable[[], t.Any]
0 commit comments