improve typing for teardown_request
This commit is contained in:
parent
d81aa70106
commit
f7adb2c813
2 changed files with 3 additions and 1 deletions
|
|
@ -5,6 +5,8 @@ Version 2.0.2
|
|||
|
||||
Unreleased
|
||||
|
||||
- Fix type annotation for ``teardown_request``. :issue:`4093`
|
||||
|
||||
|
||||
Version 2.0.1
|
||||
-------------
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue