diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-05-21 09:25:47 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-05-21 09:33:37 +0300 |
commit | 7e5f63a2ba51e97fdac0d7bda613ceeb97ff2a0c (patch) | |
tree | 0db17fe5d9519e6246f2a93374d028a78c671861 | |
parent | bc402660605527c438c819e4c94e49285f88f676 (diff) | |
download | ydb-7e5f63a2ba51e97fdac0d7bda613ceeb97ff2a0c.tar.gz |
Intermediate changes
-rw-r--r-- | contrib/python/blinker/py3/.dist-info/METADATA | 2 | ||||
-rw-r--r-- | contrib/python/blinker/py3/blinker/base.py | 21 | ||||
-rw-r--r-- | contrib/python/blinker/py3/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/hypothesis/py3/.dist-info/METADATA | 2 | ||||
-rw-r--r-- | contrib/python/hypothesis/py3/hypothesis/internal/compat.py | 3 | ||||
-rw-r--r-- | contrib/python/hypothesis/py3/hypothesis/internal/entropy.py | 11 | ||||
-rw-r--r-- | contrib/python/hypothesis/py3/hypothesis/version.py | 2 | ||||
-rw-r--r-- | contrib/python/hypothesis/py3/ya.make | 2 |
8 files changed, 24 insertions, 21 deletions
diff --git a/contrib/python/blinker/py3/.dist-info/METADATA b/contrib/python/blinker/py3/.dist-info/METADATA index d3906453a1..efa45f5980 100644 --- a/contrib/python/blinker/py3/.dist-info/METADATA +++ b/contrib/python/blinker/py3/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: blinker -Version: 1.8.1 +Version: 1.8.2 Summary: Fast, simple object-to-object and broadcast signaling Author: Jason Kirtland Maintainer-email: Pallets Ecosystem <contact@palletsprojects.com> diff --git a/contrib/python/blinker/py3/blinker/base.py b/contrib/python/blinker/py3/blinker/base.py index 62086aa57f..ec494b1415 100644 --- a/contrib/python/blinker/py3/blinker/base.py +++ b/contrib/python/blinker/py3/blinker/base.py @@ -16,18 +16,7 @@ from ._utilities import make_ref from ._utilities import Symbol if t.TYPE_CHECKING: - import typing_extensions as te - F = t.TypeVar("F", bound=c.Callable[..., t.Any]) - T = t.TypeVar("T") - P = te.ParamSpec("P") - - class PAsyncWrapper(t.Protocol): - def __call__(self, f: c.Callable[P, c.Awaitable[T]]) -> c.Callable[P, T]: ... - - class PSyncWrapper(t.Protocol): - def __call__(self, f: c.Callable[P, T]) -> c.Callable[P, c.Awaitable[T]]: ... - ANY = Symbol("ANY") """Symbol for "any sender".""" @@ -247,7 +236,10 @@ class Signal: sender: t.Any | None = None, /, *, - _async_wrapper: PAsyncWrapper | None = None, + _async_wrapper: c.Callable[ + [c.Callable[..., c.Coroutine[t.Any, t.Any, t.Any]]], c.Callable[..., t.Any] + ] + | None = None, **kwargs: t.Any, ) -> list[tuple[c.Callable[..., t.Any], t.Any]]: """Call all receivers that are connected to the given ``sender`` @@ -295,7 +287,10 @@ class Signal: sender: t.Any | None = None, /, *, - _sync_wrapper: PSyncWrapper | None = None, + _sync_wrapper: c.Callable[ + [c.Callable[..., t.Any]], c.Callable[..., c.Coroutine[t.Any, t.Any, t.Any]] + ] + | None = None, **kwargs: t.Any, ) -> list[tuple[c.Callable[..., t.Any], t.Any]]: """Await all receivers that are connected to the given ``sender`` diff --git a/contrib/python/blinker/py3/ya.make b/contrib/python/blinker/py3/ya.make index 303dabc4e4..878bbdee63 100644 --- a/contrib/python/blinker/py3/ya.make +++ b/contrib/python/blinker/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(1.8.1) +VERSION(1.8.2) LICENSE(MIT) diff --git a/contrib/python/hypothesis/py3/.dist-info/METADATA b/contrib/python/hypothesis/py3/.dist-info/METADATA index 784ab51a97..f405fc380f 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.100.4 +Version: 6.100.5 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/internal/compat.py b/contrib/python/hypothesis/py3/hypothesis/internal/compat.py index f979a075c2..105ff8eb13 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/compat.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/compat.py @@ -14,6 +14,7 @@ import dataclasses import inspect import platform import sys +import sysconfig import typing from functools import partial from typing import Any, ForwardRef, List, Optional, get_args @@ -43,6 +44,8 @@ else: PYPY = platform.python_implementation() == "PyPy" GRAALPY = platform.python_implementation() == "GraalVM" WINDOWS = platform.system() == "Windows" +# First defined in CPython 3.13, defaults to False +FREE_THREADED_CPYTHON = bool(sysconfig.get_config_var("Py_GIL_DISABLED")) def add_note(exc, note): diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/entropy.py b/contrib/python/hypothesis/py3/hypothesis/internal/entropy.py index 8715635462..6e4a30b99a 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/entropy.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/entropy.py @@ -19,7 +19,7 @@ from weakref import WeakValueDictionary import hypothesis.core from hypothesis.errors import HypothesisWarning, InvalidArgument -from hypothesis.internal.compat import GRAALPY, PYPY +from hypothesis.internal.compat import FREE_THREADED_CPYTHON, GRAALPY, PYPY if TYPE_CHECKING: from typing import Protocol @@ -116,7 +116,7 @@ def register_random(r: RandomLike) -> None: return if not (PYPY or GRAALPY): # pragma: no branch - # PYPY and GRAALPY do not have `sys.getrefcount` + # PYPY and GRAALPY do not have `sys.getrefcount`. gc.collect() if not gc.get_referrers(r): if sys.getrefcount(r) <= _PLATFORM_REF_COUNT: @@ -127,7 +127,12 @@ def register_random(r: RandomLike) -> None: "PRNG. See the docs for `register_random` for more " "details." ) - else: + elif not FREE_THREADED_CPYTHON: + # On CPython, check for the free-threaded build because + # gc.get_referrers() ignores objects with immortal refcounts + # and objects are immortalized in the Python 3.13 + # free-threading implementation at runtime. + warnings.warn( "It looks like `register_random` was passed an object that could " "be garbage collected immediately after `register_random` creates " diff --git a/contrib/python/hypothesis/py3/hypothesis/version.py b/contrib/python/hypothesis/py3/hypothesis/version.py index 05ca2c83b3..5040febc7d 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, 100, 4) +__version_info__ = (6, 100, 5) __version__ = ".".join(map(str, __version_info__)) diff --git a/contrib/python/hypothesis/py3/ya.make b/contrib/python/hypothesis/py3/ya.make index 420b273733..b5f51bc88f 100644 --- a/contrib/python/hypothesis/py3/ya.make +++ b/contrib/python/hypothesis/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(6.100.4) +VERSION(6.100.5) LICENSE(MPL-2.0) |