Skip to content
Myr

improve typing for `teardown_request`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Pascal Corpet · committed by Phil Jones · parent d81aa70 · Browse files · 2 files+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:src/flask/typing.py+1 added-1 removed
35 unmodified lines
36AppOrBlueprintKey = t.Optional[str] # The App key is None, whereas blueprints are named37AfterRequestCallable = t.Callable[["Response"], "Response"]38BeforeRequestCallable = t.Callable[[], None]39ErrorHandlerCallable = t.Callable[[Exception], ResponseReturnValue]40TeardownCallable = t.Callable[[t.Optional[BaseException]], "Response"]40TeardownCallable = t.Callable[[t.Optional[BaseException]], None]41TemplateContextProcessorCallable = t.Callable[[], t.Dict[str, t.Any]]42TemplateFilterCallable = t.Callable[[t.Any], str]43TemplateGlobalCallable = t.Callable[[], t.Any]44TemplateTestCallable = t.Callable[[t.Any], bool]
2 unmodified lines
modified:CHANGES.rst+2 added
3 unmodified lines
4-------------56Unreleased78- Fix type annotation for ``teardown_request``. :issue:`4093`91011Version 2.0.112-------------1314Released 2021-05-21
1152 unmodified lines