ez-a-sync 0.32.19__cp313-cp313-musllinux_1_2_x86_64.whl → 0.32.21__cp313-cp313-musllinux_1_2_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ez-a-sync might be problematic. Click here for more details.
- a_sync/__init__.py +1 -0
- a_sync/a_sync/function.pyi +27 -12
- a_sync/debugging.pyi +6 -3
- {ez_a_sync-0.32.19.dist-info → ez_a_sync-0.32.21.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.19.dist-info → ez_a_sync-0.32.21.dist-info}/RECORD +8 -8
- {ez_a_sync-0.32.19.dist-info → ez_a_sync-0.32.21.dist-info}/WHEEL +1 -1
- {ez_a_sync-0.32.19.dist-info → ez_a_sync-0.32.21.dist-info}/licenses/LICENSE.txt +0 -0
- {ez_a_sync-0.32.19.dist-info → ez_a_sync-0.32.21.dist-info}/top_level.txt +0 -0
a_sync/__init__.py
CHANGED
a_sync/a_sync/function.pyi
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
from a_sync._typing import *
|
|
2
1
|
import functools
|
|
3
|
-
from
|
|
4
|
-
from
|
|
2
|
+
from logging import Logger
|
|
3
|
+
from typing import Any
|
|
4
|
+
from a_sync import TaskMapping
|
|
5
|
+
from a_sync._typing import *
|
|
5
6
|
from a_sync.a_sync.method import (
|
|
6
|
-
ASyncBoundMethod
|
|
7
|
-
ASyncBoundMethodAsyncDefault
|
|
8
|
-
ASyncBoundMethodSyncDefault
|
|
7
|
+
ASyncBoundMethod,
|
|
8
|
+
ASyncBoundMethodAsyncDefault,
|
|
9
|
+
ASyncBoundMethodSyncDefault,
|
|
9
10
|
)
|
|
10
|
-
from a_sync.a_sync.modifiers.manager import ModifierManager
|
|
11
|
-
from typing import Any
|
|
11
|
+
from a_sync.a_sync.modifiers.manager import ModifierManager
|
|
12
12
|
|
|
13
|
-
logger:
|
|
13
|
+
logger: Logger
|
|
14
14
|
|
|
15
15
|
class _ModifiedMixin:
|
|
16
16
|
"""
|
|
@@ -330,7 +330,7 @@ class ASyncFunction(_ModifiedMixin, Generic[P, T]):
|
|
|
330
330
|
__docstring_append__: str
|
|
331
331
|
|
|
332
332
|
class ASyncDecorator(_ModifiedMixin):
|
|
333
|
-
modifiers:
|
|
333
|
+
modifiers: ModifierManager
|
|
334
334
|
def __init__(self, **modifiers: Unpack[ModifierKwargs]) -> None:
|
|
335
335
|
"""
|
|
336
336
|
Initializes an ASyncDecorator instance.
|
|
@@ -372,7 +372,22 @@ class ASyncDecorator(_ModifiedMixin):
|
|
|
372
372
|
"""
|
|
373
373
|
|
|
374
374
|
@overload
|
|
375
|
-
def __call__(self, func:
|
|
375
|
+
def __call__(self, func: CoroFn[P, T]) -> ASyncFunctionAsyncDefault[P, T]:
|
|
376
|
+
"""
|
|
377
|
+
Decorates a function with async or sync behavior based on the default modifier.
|
|
378
|
+
|
|
379
|
+
Args:
|
|
380
|
+
func: The function to decorate.
|
|
381
|
+
|
|
382
|
+
Returns:
|
|
383
|
+
An ASyncFunctionAsyncDefault instance.
|
|
384
|
+
|
|
385
|
+
See Also:
|
|
386
|
+
- :class:`ASyncFunction`
|
|
387
|
+
"""
|
|
388
|
+
|
|
389
|
+
@overload
|
|
390
|
+
def __call__(self, func: SyncFn[P, T]) -> ASyncFunctionSyncDefault[P, T]:
|
|
376
391
|
"""
|
|
377
392
|
Decorates a function with async or sync behavior based on the default modifier.
|
|
378
393
|
|
|
@@ -380,7 +395,7 @@ class ASyncDecorator(_ModifiedMixin):
|
|
|
380
395
|
func: The function to decorate.
|
|
381
396
|
|
|
382
397
|
Returns:
|
|
383
|
-
An
|
|
398
|
+
An ASyncFunctionSyncDefault instance.
|
|
384
399
|
|
|
385
400
|
See Also:
|
|
386
401
|
- :class:`ASyncFunction`
|
a_sync/debugging.pyi
CHANGED
|
@@ -5,6 +5,7 @@ from typing import (
|
|
|
5
5
|
AsyncIterator,
|
|
6
6
|
Awaitable,
|
|
7
7
|
Callable,
|
|
8
|
+
Coroutine,
|
|
8
9
|
Literal,
|
|
9
10
|
NoReturn,
|
|
10
11
|
TypeVar,
|
|
@@ -39,7 +40,7 @@ def stuck_coro_debugger(
|
|
|
39
40
|
) -> ASyncGeneratorFunction[__P, __TYield]: ...
|
|
40
41
|
@overload
|
|
41
42
|
def stuck_coro_debugger(
|
|
42
|
-
fn: Callable[Concatenate[__TBase, __P],
|
|
43
|
+
fn: Callable[Concatenate[__TBase, __P], Coroutine[Any, Any, __T]],
|
|
43
44
|
logger: Logger = logger,
|
|
44
45
|
interval: int = _FIVE_MINUTES,
|
|
45
46
|
) -> ASyncBoundMethod[__TBase, __P, __T]: ...
|
|
@@ -63,8 +64,10 @@ def stuck_coro_debugger(
|
|
|
63
64
|
) -> Callable[__P, AsyncIterator[__TYield]]: ...
|
|
64
65
|
@overload
|
|
65
66
|
def stuck_coro_debugger(
|
|
66
|
-
fn: Callable[__P,
|
|
67
|
-
|
|
67
|
+
fn: Callable[__P, Coroutine[Any, Any, __T]],
|
|
68
|
+
logger: Logger = logger,
|
|
69
|
+
interval: int = _FIVE_MINUTES,
|
|
70
|
+
) -> Callable[__P, Coroutine[Any, Any, __T]]: ...
|
|
68
71
|
def stuck_coro_debugger(fn, logger=logger, interval=_FIVE_MINUTES): ...
|
|
69
72
|
async def _stuck_debug_task(
|
|
70
73
|
logger: Logger, interval: int, fn: Callable[__P, __T], *args: __P.args, **kwargs: __P.kwargs
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
a_sync/ENVIRONMENT_VARIABLES.py,sha256=YgIB8mQRqQBLbD3DdwMjx4ylqO8pK3GUvSNCerWJzx8,1280
|
|
2
2
|
a_sync/__init__.pxd,sha256=ol4jqkvuweaaU8GQU_Mq9rak8IIsagYTdhYhbKK74ac,81
|
|
3
|
-
a_sync/__init__.py,sha256=
|
|
3
|
+
a_sync/__init__.py,sha256=lgwXsFYALBp0ORHRLKlpfPE79GIqbhR_MP8JbZStBGc,5750
|
|
4
4
|
a_sync/_smart.c,sha256=F6BKemtVy0XMKg4EsgqzIf1oO_kBFHco7RKYRHAh5hk,917706
|
|
5
5
|
a_sync/_smart.cpython-313-x86_64-linux-musl.so,sha256=efsR5Yh1HkghsPSepC8vuEwdIJ72FFhLCWg3_-GK4nU,1114000
|
|
6
6
|
a_sync/_smart.pxd,sha256=3FlPqSvAtmGXIDFzfm7wpkvL6xt8z8w-vwow4Lura2g,76
|
|
@@ -10,7 +10,7 @@ a_sync/_typing.py,sha256=x24VIVjxz8sUWPmQR072pHAQxJO769Nn02f3eakFpe8,6850
|
|
|
10
10
|
a_sync/aliases.py,sha256=TbLyuLeFfJEmcC5-NP6h4DQ9QXlQjGny2NUP_x1tflw,212
|
|
11
11
|
a_sync/debugging.c,sha256=RfJnHds7wZdPmWg5PYc26nqjOQijqdOMMbGk43tvUhU,589339
|
|
12
12
|
a_sync/debugging.cpython-313-x86_64-linux-musl.so,sha256=q4ySIIodAvSUDWig40hQMMiil00aenEoxmAfNCz_VWw,712024
|
|
13
|
-
a_sync/debugging.pyi,sha256=
|
|
13
|
+
a_sync/debugging.pyi,sha256=AELgYmG2aLEBrkSHL7WKUrJGzyk-XXDq_abS8W6ccck,2311
|
|
14
14
|
a_sync/debugging.pyx,sha256=Z29Lek1NyUXVFHjfk9O6XWxPNk1uRFyY6tK6fTfgxGM,3045
|
|
15
15
|
a_sync/exceptions.c,sha256=7juaOwpPuyUNyMcN3KavW1QM6uUIDHYKwTQBf3PYpH8,550527
|
|
16
16
|
a_sync/exceptions.cpython-313-x86_64-linux-musl.so,sha256=nvitlzMjol6I12rt2d4rEpmvtgqaOCwW2bhGcR5XEeM,827976
|
|
@@ -67,7 +67,7 @@ a_sync/a_sync/flags.pyx,sha256=PU_DAZzoXhn-Z-okbTu0p6stnwnKsSEn781TryRRs0E,2305
|
|
|
67
67
|
a_sync/a_sync/function.c,sha256=G0iXdFKURVdBDDOND6ZI1mEy29npz4O5nh9B1aEx114,1715536
|
|
68
68
|
a_sync/a_sync/function.cpython-313-x86_64-linux-musl.so,sha256=ruJUP69sqIaHg9_8Udm1RJWxMXoZ8B_f_Iy9phpV65s,2327024
|
|
69
69
|
a_sync/a_sync/function.pxd,sha256=QOGVstj2s4oQy18QwjCy--eu4pOlheVwWg3oiT2KDno,830
|
|
70
|
-
a_sync/a_sync/function.pyi,sha256=
|
|
70
|
+
a_sync/a_sync/function.pyi,sha256=Ui6VrM_i7Vw7PPye3X4hOQ3Za7ikD0qbI26HIs7wqow,17990
|
|
71
71
|
a_sync/a_sync/function.pyx,sha256=OIsVd51LoyePmekZiZ5UaeHbY9ABLZDpLuuCyoIY1-M,46257
|
|
72
72
|
a_sync/a_sync/method.c,sha256=go8jgtOweE-5HQKgLr86Jb1REglPDLFsOx408c7Pyio,1390305
|
|
73
73
|
a_sync/a_sync/method.cpython-313-x86_64-linux-musl.so,sha256=-kS05bWEeULsfjR-taBvDOfUDpmUl95Ti4fN27-c41M,1986504
|
|
@@ -170,8 +170,8 @@ a_sync/utils/repr.c,sha256=4HDcDzNN4_R5Z_QrhMy9kxWXK7iALDKpa--_D0k6_-Y,571751
|
|
|
170
170
|
a_sync/utils/repr.cpython-313-x86_64-linux-musl.so,sha256=8rGXE4HiblBAb_83Z7DJZPJO29jmXQz2DC6OUdblEuM,660856
|
|
171
171
|
a_sync/utils/repr.pyi,sha256=PWdsa6sF9_3nBqEgLaxtaHty7o7gwL--jPqvcelHY10,131
|
|
172
172
|
a_sync/utils/repr.pyx,sha256=xdsVdK75Zi5pAoh-8qRG0q7F0ySAq1zDkksZw37FoL4,2632
|
|
173
|
-
ez_a_sync-0.32.
|
|
174
|
-
ez_a_sync-0.32.
|
|
175
|
-
ez_a_sync-0.32.
|
|
176
|
-
ez_a_sync-0.32.
|
|
177
|
-
ez_a_sync-0.32.
|
|
173
|
+
ez_a_sync-0.32.21.dist-info/METADATA,sha256=lo0ppv5dvFgHlmVRYiPXVPgMdSC6MXS68CePUKbTh_8,13197
|
|
174
|
+
ez_a_sync-0.32.21.dist-info/WHEEL,sha256=4VbEOkf4fdBUBHdV24POjoH-zuik_eIDLSImZZCAQpQ,112
|
|
175
|
+
ez_a_sync-0.32.21.dist-info/top_level.txt,sha256=ew2xVyFeZE_a5XMEL64h7-vJIbaBQieaFcvBAWUpU_s,7
|
|
176
|
+
ez_a_sync-0.32.21.dist-info/RECORD,,
|
|
177
|
+
ez_a_sync-0.32.21.dist-info/licenses/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075
|
|
File without changes
|
|
File without changes
|