aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/hypothesis/py3
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-11-27 12:47:20 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-11-27 13:23:17 +0300
commit44e766520ceb4ac9d4a2f1dad1a00d7f6db79359 (patch)
treebc12e1166dd34fda3ed8d28b9631c4e385267d8a /contrib/python/hypothesis/py3
parentd31477e5ed13679dd3b409b100623cc81a5e0964 (diff)
downloadydb-44e766520ceb4ac9d4a2f1dad1a00d7f6db79359.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/python/hypothesis/py3')
-rw-r--r--contrib/python/hypothesis/py3/.dist-info/METADATA2
-rw-r--r--contrib/python/hypothesis/py3/hypothesis/strategies/_internal/core.py9
-rw-r--r--contrib/python/hypothesis/py3/hypothesis/version.py2
-rw-r--r--contrib/python/hypothesis/py3/ya.make2
4 files changed, 12 insertions, 3 deletions
diff --git a/contrib/python/hypothesis/py3/.dist-info/METADATA b/contrib/python/hypothesis/py3/.dist-info/METADATA
index c58ef1bbbe..80eb231761 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.88.3
+Version: 6.88.4
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/core.py b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/core.py
index 70a58866cb..e3d7808943 100644
--- a/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/core.py
+++ b/contrib/python/hypothesis/py3/hypothesis/strategies/_internal/core.py
@@ -55,6 +55,7 @@ import attr
from hypothesis._settings import note_deprecation
from hypothesis.control import cleanup, current_build_context, note
from hypothesis.errors import (
+ HypothesisWarning,
InvalidArgument,
ResolutionFailed,
RewindRecursive,
@@ -1786,6 +1787,14 @@ def _composite(f):
since="2022-07-17",
has_codemod=False,
)
+ if get_origin(sig.return_annotation) is SearchStrategy:
+ ret_repr = repr(sig.return_annotation).replace("hypothesis.strategies.", "st.")
+ warnings.warn(
+ f"Return-type annotation is `{ret_repr}`, but the decorated "
+ "function should return a value (not a strategy)",
+ HypothesisWarning,
+ stacklevel=3 if sys.version_info[:2] > (3, 9) else 5, # ugh
+ )
if params[0].kind.name != "VAR_POSITIONAL":
params = params[1:]
newsig = sig.replace(
diff --git a/contrib/python/hypothesis/py3/hypothesis/version.py b/contrib/python/hypothesis/py3/hypothesis/version.py
index 1388e5b7b1..1177a5d565 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, 88, 3)
+__version_info__ = (6, 88, 4)
__version__ = ".".join(map(str, __version_info__))
diff --git a/contrib/python/hypothesis/py3/ya.make b/contrib/python/hypothesis/py3/ya.make
index 785cd29b78..bd0d770d7a 100644
--- a/contrib/python/hypothesis/py3/ya.make
+++ b/contrib/python/hypothesis/py3/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(6.88.3)
+VERSION(6.88.4)
LICENSE(MPL-2.0)