Skip to content

Commit f7adb2c

Browse files
pcorpetpgjones
authored andcommitted
improve typing for teardown_request
1 parent d81aa70 commit f7adb2c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Version 2.0.2
55

66
Unreleased
77

8+
- Fix type annotation for ``teardown_request``. :issue:`4093`
9+
810

911
Version 2.0.1
1012
-------------

src/flask/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
AfterRequestCallable = t.Callable[["Response"], "Response"]
3838
BeforeRequestCallable = t.Callable[[], None]
3939
ErrorHandlerCallable = t.Callable[[Exception], ResponseReturnValue]
40-
TeardownCallable = t.Callable[[t.Optional[BaseException]], "Response"]
40+
TeardownCallable = t.Callable[[t.Optional[BaseException]], None]
4141
TemplateContextProcessorCallable = t.Callable[[], t.Dict[str, t.Any]]
4242
TemplateFilterCallable = t.Callable[[t.Any], str]
4343
TemplateGlobalCallable = t.Callable[[], t.Any]

0 commit comments

Comments
 (0)