forked from orbit-oss/flask
Fix typing of jinja decorators (#4109)
This commit is contained in:
parent
a960236117
commit
8e589daaf2
2 changed files with 5 additions and 3 deletions
|
|
@ -8,6 +8,8 @@ Unreleased
|
||||||
- Fix type annotation for ``teardown_request``. :issue:`4093`
|
- Fix type annotation for ``teardown_request``. :issue:`4093`
|
||||||
- Fix type annotation for ``before_request`` and ``before_app_request``
|
- Fix type annotation for ``before_request`` and ``before_app_request``
|
||||||
decorators. :issue:`4104`
|
decorators. :issue:`4104`
|
||||||
|
- Fixed the issue where typing requires template global
|
||||||
|
decorators to accept functions with no arguments. :issue:`4098`
|
||||||
|
|
||||||
|
|
||||||
Version 2.0.1
|
Version 2.0.1
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,8 @@ BeforeRequestCallable = t.Callable[[], t.Optional[ResponseReturnValue]]
|
||||||
ErrorHandlerCallable = t.Callable[[Exception], ResponseReturnValue]
|
ErrorHandlerCallable = t.Callable[[Exception], ResponseReturnValue]
|
||||||
TeardownCallable = t.Callable[[t.Optional[BaseException]], None]
|
TeardownCallable = t.Callable[[t.Optional[BaseException]], None]
|
||||||
TemplateContextProcessorCallable = t.Callable[[], t.Dict[str, t.Any]]
|
TemplateContextProcessorCallable = t.Callable[[], t.Dict[str, t.Any]]
|
||||||
TemplateFilterCallable = t.Callable[[t.Any], str]
|
TemplateFilterCallable = t.Callable[..., t.Any]
|
||||||
TemplateGlobalCallable = t.Callable[[], t.Any]
|
TemplateGlobalCallable = t.Callable[..., t.Any]
|
||||||
TemplateTestCallable = t.Callable[[t.Any], bool]
|
TemplateTestCallable = t.Callable[..., bool]
|
||||||
URLDefaultCallable = t.Callable[[str, dict], None]
|
URLDefaultCallable = t.Callable[[str, dict], None]
|
||||||
URLValuePreprocessorCallable = t.Callable[[t.Optional[str], t.Optional[dict]], None]
|
URLValuePreprocessorCallable = t.Callable[[t.Optional[str], t.Optional[dict]], None]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue