Skip to content
Myr

Fix typing of jinja decorators (#4109)

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

authored by default-303 · committed by GitHub · parent a960236 · Browse files · 2 files+5 added−3 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+5 added−3 removed

  • other:+5 added−3 removed

2 files+5 added−3 removed

modified:src/flask/typing.py+3 added-3 removed
38 unmodified lines
39BeforeRequestCallable = t.Callable[[], t.Optional[ResponseReturnValue]]40ErrorHandlerCallable = t.Callable[[Exception], ResponseReturnValue]41TeardownCallable = t.Callable[[t.Optional[BaseException]], None]42TemplateContextProcessorCallable = t.Callable[[], t.Dict[str, t.Any]]43TemplateFilterCallable = t.Callable[[t.Any], str]44TemplateGlobalCallable = t.Callable[[], t.Any]45TemplateTestCallable = t.Callable[[t.Any], bool]43TemplateFilterCallable = t.Callable[..., t.Any]44TemplateGlobalCallable = t.Callable[..., t.Any]45TemplateTestCallable = t.Callable[..., bool]46URLDefaultCallable = t.Callable[[str, dict], None]47URLValuePreprocessorCallable = t.Callable[[t.Optional[str], t.Optional[dict]], None]
modified:CHANGES.rst+2 added
6 unmodified lines
78- Fix type annotation for ``teardown_request``. :issue:`4093`9- Fix type annotation for ``before_request`` and ``before_app_request``10 decorators. :issue:`4104`11- Fixed the issue where typing requires template global12 decorators to accept functions with no arguments. :issue:`4098`131415Version 2.0.116-------------
1154 unmodified lines