diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-21 09:13:00 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-21 09:21:41 +0300 |
commit | 038539e9e87fc8aa077180e17bd90fa49c6cfe0b (patch) | |
tree | 35c37de4daf7d4b147dce8d18b8459c6e9b3f9cf | |
parent | d18b988a03fd41daa2ae012f6a4c52fa19f8e96a (diff) | |
download | ydb-038539e9e87fc8aa077180e17bd90fa49c6cfe0b.tar.gz |
Intermediate changes
9 files changed, 55 insertions, 57 deletions
diff --git a/contrib/python/hypothesis/py3/.dist-info/METADATA b/contrib/python/hypothesis/py3/.dist-info/METADATA index fa7fb92111..e48da7dc0b 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.108.9 +Version: 6.108.10 Summary: A library for property-based testing Home-page: https://hypothesis.works Author: David R. MacIver and Zac Hatfield-Dodds @@ -35,59 +35,59 @@ Classifier: Typing :: Typed Requires-Python: >=3.8 Description-Content-Type: text/x-rst License-File: LICENSE.txt -Requires-Dist: attrs >=22.2.0 -Requires-Dist: sortedcontainers <3.0.0,>=2.1.0 -Requires-Dist: exceptiongroup >=1.0.0 ; python_version < "3.11" +Requires-Dist: attrs>=22.2.0 +Requires-Dist: sortedcontainers<3.0.0,>=2.1.0 +Requires-Dist: exceptiongroup>=1.0.0; python_version < "3.11" Provides-Extra: all -Requires-Dist: black >=19.10b0 ; extra == 'all' -Requires-Dist: click >=7.0 ; extra == 'all' -Requires-Dist: crosshair-tool >=0.0.65 ; extra == 'all' -Requires-Dist: django >=3.2 ; extra == 'all' -Requires-Dist: dpcontracts >=0.4 ; extra == 'all' -Requires-Dist: hypothesis-crosshair >=0.0.11 ; extra == 'all' -Requires-Dist: lark >=0.10.1 ; extra == 'all' -Requires-Dist: libcst >=0.3.16 ; extra == 'all' -Requires-Dist: numpy >=1.17.3 ; extra == 'all' -Requires-Dist: pandas >=1.1 ; extra == 'all' -Requires-Dist: pytest >=4.6 ; extra == 'all' -Requires-Dist: python-dateutil >=1.4 ; extra == 'all' -Requires-Dist: pytz >=2014.1 ; extra == 'all' -Requires-Dist: redis >=3.0.0 ; extra == 'all' -Requires-Dist: rich >=9.0.0 ; extra == 'all' -Requires-Dist: backports.zoneinfo >=0.2.1 ; (python_version < "3.9") and extra == 'all' -Requires-Dist: tzdata >=2024.1 ; (sys_platform == "win32" or sys_platform == "emscripten") and extra == 'all' +Requires-Dist: black>=19.10b0; extra == "all" +Requires-Dist: click>=7.0; extra == "all" +Requires-Dist: crosshair-tool>=0.0.65; extra == "all" +Requires-Dist: django>=3.2; extra == "all" +Requires-Dist: dpcontracts>=0.4; extra == "all" +Requires-Dist: hypothesis-crosshair>=0.0.11; extra == "all" +Requires-Dist: lark>=0.10.1; extra == "all" +Requires-Dist: libcst>=0.3.16; extra == "all" +Requires-Dist: numpy>=1.17.3; extra == "all" +Requires-Dist: pandas>=1.1; extra == "all" +Requires-Dist: pytest>=4.6; extra == "all" +Requires-Dist: python-dateutil>=1.4; extra == "all" +Requires-Dist: pytz>=2014.1; extra == "all" +Requires-Dist: redis>=3.0.0; extra == "all" +Requires-Dist: rich>=9.0.0; extra == "all" +Requires-Dist: backports.zoneinfo>=0.2.1; python_version < "3.9" and extra == "all" +Requires-Dist: tzdata>=2024.1; (sys_platform == "win32" or sys_platform == "emscripten") and extra == "all" Provides-Extra: cli -Requires-Dist: click >=7.0 ; extra == 'cli' -Requires-Dist: black >=19.10b0 ; extra == 'cli' -Requires-Dist: rich >=9.0.0 ; extra == 'cli' +Requires-Dist: click>=7.0; extra == "cli" +Requires-Dist: black>=19.10b0; extra == "cli" +Requires-Dist: rich>=9.0.0; extra == "cli" Provides-Extra: codemods -Requires-Dist: libcst >=0.3.16 ; extra == 'codemods' +Requires-Dist: libcst>=0.3.16; extra == "codemods" Provides-Extra: crosshair -Requires-Dist: hypothesis-crosshair >=0.0.11 ; extra == 'crosshair' -Requires-Dist: crosshair-tool >=0.0.65 ; extra == 'crosshair' +Requires-Dist: hypothesis-crosshair>=0.0.11; extra == "crosshair" +Requires-Dist: crosshair-tool>=0.0.65; extra == "crosshair" Provides-Extra: dateutil -Requires-Dist: python-dateutil >=1.4 ; extra == 'dateutil' +Requires-Dist: python-dateutil>=1.4; extra == "dateutil" Provides-Extra: django -Requires-Dist: django >=3.2 ; extra == 'django' +Requires-Dist: django>=3.2; extra == "django" Provides-Extra: dpcontracts -Requires-Dist: dpcontracts >=0.4 ; extra == 'dpcontracts' +Requires-Dist: dpcontracts>=0.4; extra == "dpcontracts" Provides-Extra: ghostwriter -Requires-Dist: black >=19.10b0 ; extra == 'ghostwriter' +Requires-Dist: black>=19.10b0; extra == "ghostwriter" Provides-Extra: lark -Requires-Dist: lark >=0.10.1 ; extra == 'lark' +Requires-Dist: lark>=0.10.1; extra == "lark" Provides-Extra: numpy -Requires-Dist: numpy >=1.17.3 ; extra == 'numpy' +Requires-Dist: numpy>=1.17.3; extra == "numpy" Provides-Extra: pandas -Requires-Dist: pandas >=1.1 ; extra == 'pandas' +Requires-Dist: pandas>=1.1; extra == "pandas" Provides-Extra: pytest -Requires-Dist: pytest >=4.6 ; extra == 'pytest' +Requires-Dist: pytest>=4.6; extra == "pytest" Provides-Extra: pytz -Requires-Dist: pytz >=2014.1 ; extra == 'pytz' +Requires-Dist: pytz>=2014.1; extra == "pytz" Provides-Extra: redis -Requires-Dist: redis >=3.0.0 ; extra == 'redis' +Requires-Dist: redis>=3.0.0; extra == "redis" Provides-Extra: zoneinfo -Requires-Dist: backports.zoneinfo >=0.2.1 ; (python_version < "3.9") and extra == 'zoneinfo' -Requires-Dist: tzdata >=2024.1 ; (sys_platform == "win32" or sys_platform == "emscripten") and extra == 'zoneinfo' +Requires-Dist: backports.zoneinfo>=0.2.1; python_version < "3.9" and extra == "zoneinfo" +Requires-Dist: tzdata>=2024.1; (sys_platform == "win32" or sys_platform == "emscripten") and extra == "zoneinfo" ========== Hypothesis diff --git a/contrib/python/hypothesis/py3/hypothesis/extra/django/_impl.py b/contrib/python/hypothesis/py3/hypothesis/extra/django/_impl.py index d4bcefb0c1..09a1c2707c 100644 --- a/contrib/python/hypothesis/py3/hypothesis/extra/django/_impl.py +++ b/contrib/python/hypothesis/py3/hypothesis/extra/django/_impl.py @@ -204,7 +204,7 @@ def from_form( return _forms_impl( st.builds( - partial(form, **form_kwargs), + partial(form, **form_kwargs), # type: ignore data=st.fixed_dictionaries(field_strategies), # type: ignore ) ) diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/data.py b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/data.py index 785eb92328..72bc4ba980 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/data.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/data.py @@ -155,9 +155,9 @@ class Status(IntEnum): @dataclass_transform() -@attr.s(frozen=True, slots=True, auto_attribs=True) +@attr.s(slots=True, frozen=True) class StructuralCoverageTag: - label: int + label: int = attr.ib() STRUCTURAL_COVERAGE_CACHE: Dict[int, StructuralCoverageTag] = {} diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/shrinking/collection.py b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/shrinking/collection.py index bc96e14d48..a87a27b359 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/shrinking/collection.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/shrinking/collection.py @@ -10,10 +10,7 @@ from hypothesis.internal.conjecture.shrinking.common import Shrinker from hypothesis.internal.conjecture.shrinking.ordering import Ordering - - -def identity(v): - return v +from hypothesis.internal.conjecture.utils import identity class Collection(Shrinker): diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/shrinking/ordering.py b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/shrinking/ordering.py index f112308f5c..4e48bdf7b9 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/shrinking/ordering.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/shrinking/ordering.py @@ -10,10 +10,7 @@ from hypothesis.internal.conjecture.junkdrawer import find_integer from hypothesis.internal.conjecture.shrinking.common import Shrinker - - -def identity(v): - return v +from hypothesis.internal.conjecture.utils import identity class Ordering(Shrinker): diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/utils.py b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/utils.py index 773324bc80..3724c82177 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/utils.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/utils.py @@ -51,6 +51,10 @@ ONE_FROM_MANY_LABEL = calc_label_from_name("one more from many()") T = TypeVar("T") +def identity(v: T) -> T: + return v + + def check_sample( values: Union[Type[enum.Enum], Sequence[T]], strategy_name: str ) -> Sequence[T]: diff --git a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/core.py b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/core.py index f7e7dbc272..62dcecde20 100644 --- a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/core.py +++ b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/core.py @@ -83,7 +83,11 @@ from hypothesis.internal.compat import ( get_type_hints, is_typed_named_tuple, ) -from hypothesis.internal.conjecture.utils import calc_label_from_cls, check_sample +from hypothesis.internal.conjecture.utils import ( + calc_label_from_cls, + check_sample, + identity, +) from hypothesis.internal.entropy import get_seeder_and_restorer from hypothesis.internal.floats import float_of from hypothesis.internal.observability import TESTCASE_CALLBACKS @@ -271,10 +275,6 @@ def sampled_from( return SampledFromStrategy(values, repr_) -def identity(x): - return x - - @cacheable @defines_strategy() def lists( diff --git a/contrib/python/hypothesis/py3/hypothesis/version.py b/contrib/python/hypothesis/py3/hypothesis/version.py index d711a8c383..c8a8221c54 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, 108, 9) +__version_info__ = (6, 108, 10) __version__ = ".".join(map(str, __version_info__)) diff --git a/contrib/python/hypothesis/py3/ya.make b/contrib/python/hypothesis/py3/ya.make index d5dcf56845..8a025cf359 100644 --- a/contrib/python/hypothesis/py3/ya.make +++ b/contrib/python/hypothesis/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(6.108.9) +VERSION(6.108.10) LICENSE(MPL-2.0) |