improve typing for teardown_request

This commit is contained in:
Pascal Corpet 2021-05-24 00:31:43 +02:00 committed by Phil Jones
parent d81aa70106
commit f7adb2c813
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,8 @@ Version 2.0.2
Unreleased
- Fix type annotation for ``teardown_request``. :issue:`4093`
Version 2.0.1
-------------

View file

@ -37,7 +37,7 @@ AppOrBlueprintKey = t.Optional[str] # The App key is None, whereas blueprints a
AfterRequestCallable = t.Callable[["Response"], "Response"]
BeforeRequestCallable = t.Callable[[], None]
ErrorHandlerCallable = t.Callable[[Exception], ResponseReturnValue]
TeardownCallable = t.Callable[[t.Optional[BaseException]], "Response"]
TeardownCallable = t.Callable[[t.Optional[BaseException]], None]
TemplateContextProcessorCallable = t.Callable[[], t.Dict[str, t.Any]]
TemplateFilterCallable = t.Callable[[t.Any], str]
TemplateGlobalCallable = t.Callable[[], t.Any]