diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-03-25 09:11:17 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-03-25 09:17:48 +0300 |
commit | 4624e4cfd95649270db02616edde8d0ca249b63d (patch) | |
tree | 1c8a43f50533ca759d137f258e42862e8cf5e80f /contrib/python/hypothesis | |
parent | d2d971701bd8377ead5f973c96be81042774bd2a (diff) | |
download | ydb-4624e4cfd95649270db02616edde8d0ca249b63d.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/python/hypothesis')
8 files changed, 29 insertions, 23 deletions
diff --git a/contrib/python/hypothesis/py3/.dist-info/METADATA b/contrib/python/hypothesis/py3/.dist-info/METADATA index 9aaef70d52..d1464866e4 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.99.0 +Version: 6.99.2 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/extra/pandas/impl.py b/contrib/python/hypothesis/py3/hypothesis/extra/pandas/impl.py index 7b53a8be42..dbef1e04a2 100644 --- a/contrib/python/hypothesis/py3/hypothesis/extra/pandas/impl.py +++ b/contrib/python/hypothesis/py3/hypothesis/extra/pandas/impl.py @@ -11,7 +11,7 @@ from collections import OrderedDict, abc from copy import copy from datetime import datetime, timedelta -from typing import Any, List, Optional, Sequence, Set, Union +from typing import Any, Generic, List, Optional, Sequence, Set, Union import attr import numpy as np @@ -358,7 +358,7 @@ def series( @attr.s(slots=True) -class column: +class column(Generic[Ex]): """Data object for describing a column in a DataFrame. Arguments: @@ -375,11 +375,11 @@ class column: * unique: If all values in this column should be distinct. """ - name = attr.ib(default=None) - elements = attr.ib(default=None) - dtype = attr.ib(default=None, repr=get_pretty_function_description) - fill = attr.ib(default=None) - unique = attr.ib(default=False) + name: Optional[Union[str, int]] = attr.ib(default=None) + elements: Optional[st.SearchStrategy[Ex]] = attr.ib(default=None) + dtype: Any = attr.ib(default=None, repr=get_pretty_function_description) + fill: Optional[st.SearchStrategy[Ex]] = attr.ib(default=None) + unique: bool = attr.ib(default=False) def columns( @@ -389,7 +389,7 @@ def columns( elements: Optional[st.SearchStrategy[Ex]] = None, fill: Optional[st.SearchStrategy[Ex]] = None, unique: bool = False, -) -> List[column]: +) -> List[column[Ex]]: """A convenience function for producing a list of :class:`column` objects of the same general shape. diff --git a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/collections.py b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/collections.py index f37fd0fcae..90ffca6ca7 100644 --- a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/collections.py +++ b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/collections.py @@ -196,8 +196,9 @@ class ListStrategy(SearchStrategy): return result def __repr__(self): - return "{}({!r}, min_size={:_}, max_size={:_})".format( - self.__class__.__name__, self.element_strategy, self.min_size, self.max_size + return ( + f"{self.__class__.__name__}({self.element_strategy!r}, " + f"min_size={self.min_size:_}, max_size={self.max_size:_})" ) def filter(self, condition): diff --git a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/numbers.py b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/numbers.py index 302f6f92b5..507cf879d6 100644 --- a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/numbers.py +++ b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/numbers.py @@ -177,13 +177,10 @@ class FloatStrategy(SearchStrategy): self.smallest_nonzero_magnitude = smallest_nonzero_magnitude def __repr__(self): - return "{}(min_value={}, max_value={}, allow_nan={}, smallest_nonzero_magnitude={})".format( - self.__class__.__name__, - self.min_value, - self.max_value, - self.allow_nan, - self.smallest_nonzero_magnitude, - ) + return ( + f"{self.__class__.__name__}({self.min_value=}, {self.max_value=}, " + f"{self.allow_nan=}, {self.smallest_nonzero_magnitude=})" + ).replace("self.", "") def do_draw(self, data): return data.draw_float( diff --git a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/strategies.py b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/strategies.py index 83b0e6b059..d8d6be91ae 100644 --- a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/strategies.py +++ b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/strategies.py @@ -14,6 +14,7 @@ from collections import abc, defaultdict from functools import lru_cache from random import shuffle from typing import ( + TYPE_CHECKING, Any, Callable, ClassVar, @@ -51,7 +52,15 @@ from hypothesis.internal.reflection import ( from hypothesis.strategies._internal.utils import defines_strategy from hypothesis.utils.conventions import UniqueIdentifier -Ex = TypeVar("Ex", covariant=True) +if sys.version_info >= (3, 13): + Ex = TypeVar("Ex", covariant=True, default=Any) +elif TYPE_CHECKING: + from typing_extensions import TypeVar # type: ignore[assignment] + + Ex = TypeVar("Ex", covariant=True, default=Any) +else: + Ex = TypeVar("Ex", covariant=True) + Ex_Inv = TypeVar("Ex_Inv") T = TypeVar("T") T3 = TypeVar("T3") diff --git a/contrib/python/hypothesis/py3/hypothesis/vendor/tlds-alpha-by-domain.txt b/contrib/python/hypothesis/py3/hypothesis/vendor/tlds-alpha-by-domain.txt index 167e07e0e7..7b2f84dfad 100644 --- a/contrib/python/hypothesis/py3/hypothesis/vendor/tlds-alpha-by-domain.txt +++ b/contrib/python/hypothesis/py3/hypothesis/vendor/tlds-alpha-by-domain.txt @@ -1,4 +1,4 @@ -# Version 2024021000, Last Updated Sat Feb 10 07:07:02 2024 UTC +# Version 2024031000, Last Updated Sun Mar 10 07:07:01 2024 UTC AAA AARP ABB @@ -510,7 +510,6 @@ GROUP GS GT GU -GUARDIAN GUCCI GUGE GUIDE diff --git a/contrib/python/hypothesis/py3/hypothesis/version.py b/contrib/python/hypothesis/py3/hypothesis/version.py index aa19764f61..3b606ab7d4 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, 99, 0) +__version_info__ = (6, 99, 2) __version__ = ".".join(map(str, __version_info__)) diff --git a/contrib/python/hypothesis/py3/ya.make b/contrib/python/hypothesis/py3/ya.make index 3ed4fc14fc..0e3245c527 100644 --- a/contrib/python/hypothesis/py3/ya.make +++ b/contrib/python/hypothesis/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(6.99.0) +VERSION(6.99.2) LICENSE(MPL-2.0) |