diff options
| author | robot-piglet <[email protected]> | 2026-02-27 15:54:17 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2026-02-27 17:44:03 +0300 |
| commit | 338ee1ed113013913d3f7d1ef55bd77855361e97 (patch) | |
| tree | ac6590dbfa5bfe8b3bed481ed81d940186f20583 /contrib/python/hypothesis | |
| parent | 2cc81d0ab47b1051928ba67a073641f29b9e9bf1 (diff) | |
Intermediate changes
commit_hash:4861d3e068b658d1f720e7f625fff468a8c3a86d
Diffstat (limited to 'contrib/python/hypothesis')
11 files changed, 13 insertions, 13 deletions
diff --git a/contrib/python/hypothesis/py3/.dist-info/METADATA b/contrib/python/hypothesis/py3/.dist-info/METADATA index b3f079a100c..e56c788cefc 100644 --- a/contrib/python/hypothesis/py3/.dist-info/METADATA +++ b/contrib/python/hypothesis/py3/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: hypothesis -Version: 6.151.5 +Version: 6.151.6 Summary: The property-based testing library for Python Author-email: "David R. MacIver and Zac Hatfield-Dodds" <[email protected]> License-Expression: MPL-2.0 diff --git a/contrib/python/hypothesis/py3/hypothesis/database.py b/contrib/python/hypothesis/py3/hypothesis/database.py index eae2f579cb0..f1b41bdf9d1 100644 --- a/contrib/python/hypothesis/py3/hypothesis/database.py +++ b/contrib/python/hypothesis/py3/hypothesis/database.py @@ -1027,7 +1027,7 @@ class GitHubArtifactDatabase(ExampleDatabase): else: warning_message = ( "Could not get the latest artifact from GitHub. " - "This could be because because the repository " + "This could be because the repository " "or artifact does not exist. " ) # see https://github.com/python/cpython/issues/128734 @@ -1105,7 +1105,7 @@ class GitHubArtifactDatabase(ExampleDatabase): kp = self._key_path(key) with ZipFile(self._artifact) as zf: - # Get the all files in the the kp from the cache + # Get all the files in the kp from the cache filenames = self._access_cache.get(kp, ()) for filename in filenames: with zf.open(filename.as_posix()) as f: diff --git a/contrib/python/hypothesis/py3/hypothesis/extra/_array_helpers.py b/contrib/python/hypothesis/py3/hypothesis/extra/_array_helpers.py index 802f571f24d..a946314e68e 100644 --- a/contrib/python/hypothesis/py3/hypothesis/extra/_array_helpers.py +++ b/contrib/python/hypothesis/py3/hypothesis/extra/_array_helpers.py @@ -607,7 +607,7 @@ class MutuallyBroadcastableShapesStrategy(st.SearchStrategy): else: side = dim_side - # Use a trick where where a biased coin is queried to see + # Use a trick where a biased coin is queried to see # if the given shape-tuple will continue to be grown. All # of the relevant draws will still be made for the given # shape-tuple even if it is no longer being added to. diff --git a/contrib/python/hypothesis/py3/hypothesis/extra/array_api.py b/contrib/python/hypothesis/py3/hypothesis/extra/array_api.py index 511402193a6..6d324124646 100644 --- a/contrib/python/hypothesis/py3/hypothesis/extra/array_api.py +++ b/contrib/python/hypothesis/py3/hypothesis/extra/array_api.py @@ -784,7 +784,7 @@ def indices( :func:`~hypothesis.strategies.slices` instead. * ``min_dims`` is the minimum dimensionality of the resulting array from use of the generated index. - * ``max_dims`` is the the maximum dimensionality of the resulting array, + * ``max_dims`` is the maximum dimensionality of the resulting array, defaulting to ``len(shape) if not allow_newaxis else max(len(shape), min_dims) + 2``. * ``allow_ellipsis`` specifies whether ``None`` is allowed in the index. diff --git a/contrib/python/hypothesis/py3/hypothesis/extra/numpy.py b/contrib/python/hypothesis/py3/hypothesis/extra/numpy.py index 0cf3efaea3a..eee98231592 100644 --- a/contrib/python/hypothesis/py3/hypothesis/extra/numpy.py +++ b/contrib/python/hypothesis/py3/hypothesis/extra/numpy.py @@ -1166,7 +1166,7 @@ def basic_indices( * ``min_dims`` is the minimum dimensionality of the resulting array from use of the generated index. When ``min_dims == 0``, scalars and zero-dimensional arrays are both allowed. - * ``max_dims`` is the the maximum dimensionality of the resulting array, + * ``max_dims`` is the maximum dimensionality of the resulting array, defaulting to ``len(shape) if not allow_newaxis else max(len(shape), min_dims) + 2``. * ``allow_newaxis`` specifies whether ``None`` is allowed in the index. diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/data.py b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/data.py index 8c6ea5c4f1e..ff2d8d521ca 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/data.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/data.py @@ -142,7 +142,7 @@ POOLED_CONSTRAINTS_CACHE: LRUCache[tuple[Any, ...], ChoiceConstraintsT] = LRUCac class Span: """A span tracks the hierarchical structure of choices within a single test run. - Spans are created to mark regions of the choice sequence that that are + Spans are created to mark regions of the choice sequence that are logically related to each other. For instance, Hypothesis tracks: - A single top-level span for the entire choice sequence - A span for the choices made by each strategy diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/shrinker.py b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/shrinker.py index 50e1ff89f4c..d8212f41c38 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/shrinker.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/shrinker.py @@ -1144,7 +1144,7 @@ class Shrinker: # case of this function of preserving from the right instead of # preserving from the left. see test_can_shrink_variable_string_draws. - (index, attempt_choice_type, attempt_constraints, _attempt_forced) = ( + index, attempt_choice_type, attempt_constraints, _attempt_forced = ( attempt.misaligned_at ) node = self.nodes[index] @@ -1291,7 +1291,7 @@ class Shrinker: # Because we run in a random order we will often find ourselves in the middle # of a region where we could run the node program. We thus start by moving - # left to the beginning of that region if possible in order to to start from + # left to the beginning of that region if possible in order to start from # the beginning of that region. def offset_left(k): return i - k * n diff --git a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/attrs.py b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/attrs.py index 4e057df545c..77d3b7f180e 100644 --- a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/attrs.py +++ b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/attrs.py @@ -164,7 +164,7 @@ def types_to_strategy(attrib: Attribute, types: Collection[Any]) -> SearchStrate return st.from_type(typ) elif types: # We have a list of tuples of types, and want to find a type - # (or tuple of types) that is a subclass of all of of them. + # (or tuple of types) that is a subclass of all of them. type_tuples = [k if isinstance(k, tuple) else (k,) for k in types] # Flatten the list, filter types that would fail validation, and # sort so that ordering is stable between runs and shrinks well. diff --git a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/core.py b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/core.py index 1f56b38f233..c6e5cf97000 100644 --- a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/core.py +++ b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/core.py @@ -1518,7 +1518,7 @@ def _from_type(thing: type[Ex]) -> SearchStrategy[Ex]: # If there's no explicitly registered strategy, maybe a subtype of thing # is registered - if so, we can resolve it to the subclass strategy. - # We'll start by checking if thing is from from the typing module, + # We'll start by checking if thing is from the typing module, # because there are several special cases that don't play well with # subclass and instance checks. if ( diff --git a/contrib/python/hypothesis/py3/hypothesis/version.py b/contrib/python/hypothesis/py3/hypothesis/version.py index 1cdc1db6a60..1c5134b3bbf 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, 151, 5) +__version_info__ = (6, 151, 6) __version__ = ".".join(map(str, __version_info__)) diff --git a/contrib/python/hypothesis/py3/ya.make b/contrib/python/hypothesis/py3/ya.make index 3551b36fcb8..70049094848 100644 --- a/contrib/python/hypothesis/py3/ya.make +++ b/contrib/python/hypothesis/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(6.151.5) +VERSION(6.151.6) LICENSE(MPL-2.0) |
