Upgrade linter (#4461)
This commit is contained in:
parent
37e28428c1
commit
d2bbc6ef70
21 changed files with 28 additions and 7 deletions
|
@ -417,6 +417,7 @@ class TemplateEnvironment(ImmutableSandboxedEnvironment):
|
|||
"""Test if callback is safe."""
|
||||
return isinstance(obj, AllStates) or super().is_safe_callable(obj)
|
||||
|
||||
|
||||
ENV = TemplateEnvironment()
|
||||
ENV.filters['round'] = forgiving_round
|
||||
ENV.filters['multiply'] = multiply
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue