diff options
| author | robot-piglet <[email protected]> | 2024-05-21 09:25:47 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2024-05-21 09:33:37 +0300 |
| commit | 7e5f63a2ba51e97fdac0d7bda613ceeb97ff2a0c (patch) | |
| tree | 0db17fe5d9519e6246f2a93374d028a78c671861 /contrib/python/blinker/py3 | |
| parent | bc402660605527c438c819e4c94e49285f88f676 (diff) | |
Intermediate changes
Diffstat (limited to 'contrib/python/blinker/py3')
| -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 |
3 files changed, 10 insertions, 15 deletions
diff --git a/contrib/python/blinker/py3/.dist-info/METADATA b/contrib/python/blinker/py3/.dist-info/METADATA index d3906453a1c..efa45f59806 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 <[email protected]> diff --git a/contrib/python/blinker/py3/blinker/base.py b/contrib/python/blinker/py3/blinker/base.py index 62086aa57fc..ec494b1415e 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 303dabc4e4e..878bbdee638 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) |
