diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2024-05-20 09:01:58 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2024-05-20 09:13:14 +0300 |
commit | 113478c6a7e201ab2d7ad78d9edbc28800283a75 (patch) | |
tree | 98b88d8dc4bfe5c664f813ead96eefb0f456e2a9 /contrib/python/Jinja2/py3/jinja2/tests.py | |
parent | 685fde8e2a4228200a88a5987a061329f7c59323 (diff) | |
download | ydb-113478c6a7e201ab2d7ad78d9edbc28800283a75.tar.gz |
Update contrib/python/Jinja2/py3 to 3.1.4
264ae85f13f4a11226be8b846079da1aece08b50
Diffstat (limited to 'contrib/python/Jinja2/py3/jinja2/tests.py')
-rw-r--r-- | contrib/python/Jinja2/py3/jinja2/tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/python/Jinja2/py3/jinja2/tests.py b/contrib/python/Jinja2/py3/jinja2/tests.py index a467cf08b5..1a59e37032 100644 --- a/contrib/python/Jinja2/py3/jinja2/tests.py +++ b/contrib/python/Jinja2/py3/jinja2/tests.py @@ -1,4 +1,5 @@ """Built-in template tests used with the ``is`` operator.""" + import operator import typing as t from collections import abc @@ -169,7 +170,7 @@ def test_sequence(value: t.Any) -> bool: """ try: len(value) - value.__getitem__ + value.__getitem__ # noqa B018 except Exception: return False @@ -204,7 +205,7 @@ def test_escaped(value: t.Any) -> bool: return hasattr(value, "__html__") -def test_in(value: t.Any, seq: t.Container) -> bool: +def test_in(value: t.Any, seq: t.Container[t.Any]) -> bool: """Check if value is in seq. .. versionadded:: 2.10 |