diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-23 10:55:51 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-23 11:03:55 +0300 |
commit | 6494b885fc509f8bb4bee9de2fdc877f7076801d (patch) | |
tree | 2b9d54da4fa291d5a3663bccf00dc8e79d403cb2 /contrib/python/hypothesis | |
parent | 86410a8833e6d17a11a23534d2ce2948f1c11193 (diff) | |
download | ydb-6494b885fc509f8bb4bee9de2fdc877f7076801d.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/python/hypothesis')
4 files changed, 9 insertions, 5 deletions
diff --git a/contrib/python/hypothesis/py3/.dist-info/METADATA b/contrib/python/hypothesis/py3/.dist-info/METADATA index 9a38b4132f..1e09939db8 100644 --- a/contrib/python/hypothesis/py3/.dist-info/METADATA +++ b/contrib/python/hypothesis/py3/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: hypothesis -Version: 6.110.0 +Version: 6.110.1 Summary: A library for property-based testing Home-page: https://hypothesis.works Author: David R. MacIver and Zac Hatfield-Dodds diff --git a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/types.py b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/types.py index d5fef48aad..85051cfdbe 100644 --- a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/types.py +++ b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/types.py @@ -120,7 +120,11 @@ try: except AttributeError: # pragma: no cover pass # Is missing for `python<3.10` try: - TypeGuardTypes += (typing_extensions.TypeGuard,) + TypeGuardTypes += (typing.TypeIs,) # type: ignore +except AttributeError: # pragma: no cover + pass # Is missing for `python<3.13` +try: + TypeGuardTypes += (typing_extensions.TypeGuard, typing_extensions.TypeIs) except AttributeError: # pragma: no cover pass # `typing_extensions` might not be installed @@ -1067,7 +1071,7 @@ def resolve_Callable(thing): if get_origin(return_type) in TypeGuardTypes: raise InvalidArgument( "Hypothesis cannot yet construct a strategy for callables which " - f"are PEP-647 TypeGuards (got {return_type!r}). " + f"are PEP-647 TypeGuards or PEP-742 TypeIs (got {return_type!r}). " "Consider using an explicit strategy, or opening an issue." ) diff --git a/contrib/python/hypothesis/py3/hypothesis/version.py b/contrib/python/hypothesis/py3/hypothesis/version.py index 007af37ae6..e02ca3db87 100644 --- a/contrib/python/hypothesis/py3/hypothesis/version.py +++ b/contrib/python/hypothesis/py3/hypothesis/version.py @@ -8,5 +8,5 @@ # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. -__version_info__ = (6, 110, 0) +__version_info__ = (6, 110, 1) __version__ = ".".join(map(str, __version_info__)) diff --git a/contrib/python/hypothesis/py3/ya.make b/contrib/python/hypothesis/py3/ya.make index 7e33dc4497..44835a36ca 100644 --- a/contrib/python/hypothesis/py3/ya.make +++ b/contrib/python/hypothesis/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(6.110.0) +VERSION(6.110.1) LICENSE(MPL-2.0) |