aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Jinja2/py3/jinja2/runtime.py
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2024-01-25 09:51:43 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2024-01-25 10:15:24 +0300
commit42db3295ba5bc7fffa4b289c9010d802e2d7911c (patch)
treec9a78a1b8b9f06c8de4788c1e19c83a35beea59d /contrib/python/Jinja2/py3/jinja2/runtime.py
parenta47b1fb37eb32d1a5d55d8be2af832cc4406935a (diff)
downloadydb-42db3295ba5bc7fffa4b289c9010d802e2d7911c.tar.gz
Update contrib/python/Jinja2/py3 to 3.1.3
Diffstat (limited to 'contrib/python/Jinja2/py3/jinja2/runtime.py')
-rw-r--r--contrib/python/Jinja2/py3/jinja2/runtime.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/contrib/python/Jinja2/py3/jinja2/runtime.py b/contrib/python/Jinja2/py3/jinja2/runtime.py
index 985842b2842..58a540ba3f4 100644
--- a/contrib/python/Jinja2/py3/jinja2/runtime.py
+++ b/contrib/python/Jinja2/py3/jinja2/runtime.py
@@ -272,9 +272,9 @@ class Context:
# Allow callable classes to take a context
if (
hasattr(__obj, "__call__") # noqa: B004
- and _PassArg.from_obj(__obj.__call__) is not None # type: ignore
+ and _PassArg.from_obj(__obj.__call__) is not None
):
- __obj = __obj.__call__ # type: ignore
+ __obj = __obj.__call__
pass_arg = _PassArg.from_obj(__obj)
@@ -927,9 +927,7 @@ def make_logging_undefined(
logger.addHandler(logging.StreamHandler(sys.stderr))
def _log_message(undef: Undefined) -> None:
- logger.warning( # type: ignore
- "Template variable warning: %s", undef._undefined_message
- )
+ logger.warning("Template variable warning: %s", undef._undefined_message)
class LoggingUndefined(base): # type: ignore
__slots__ = ()