File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ Unreleased
8
8
- Fix type annotation for ``teardown_request ``. :issue: `4093 `
9
9
- Fix type annotation for ``before_request `` and ``before_app_request ``
10
10
decorators. :issue: `4104 `
11
+ - Fixed the issue where typing requires template global
12
+ decorators to accept functions with no arguments. :issue: `4098 `
11
13
12
14
13
15
Version 2.0.1
Original file line number Diff line number Diff line change 40
40
ErrorHandlerCallable = t .Callable [[Exception ], ResponseReturnValue ]
41
41
TeardownCallable = t .Callable [[t .Optional [BaseException ]], None ]
42
42
TemplateContextProcessorCallable = t .Callable [[], t .Dict [str , t .Any ]]
43
- TemplateFilterCallable = t .Callable [[ t . Any ], str ]
44
- TemplateGlobalCallable = t .Callable [[] , t .Any ]
45
- TemplateTestCallable = t .Callable [[ t . Any ] , bool ]
43
+ TemplateFilterCallable = t .Callable [..., t . Any ]
44
+ TemplateGlobalCallable = t .Callable [... , t .Any ]
45
+ TemplateTestCallable = t .Callable [... , bool ]
46
46
URLDefaultCallable = t .Callable [[str , dict ], None ]
47
47
URLValuePreprocessorCallable = t .Callable [[t .Optional [str ], t .Optional [dict ]], None ]
You can’t perform that action at this time.
0 commit comments