ez-a-sync 0.32.19__cp38-cp38-musllinux_1_2_i686.whl → 0.32.21__cp38-cp38-musllinux_1_2_i686.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 CHANGED
@@ -103,6 +103,7 @@ __all__ = [
103
103
  # classes
104
104
  "ASyncIterable",
105
105
  "ASyncIterator",
106
+ "ASyncGenericBase",
106
107
  "ASyncGenericSingleton",
107
108
  "TaskMapping",
108
109
  # property
@@ -1,16 +1,16 @@
1
- from a_sync._typing import *
2
1
  import functools
3
- from _typeshed import Incomplete
4
- from a_sync import TaskMapping as TaskMapping
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 as ASyncBoundMethod,
7
- ASyncBoundMethodAsyncDefault as ASyncBoundMethodAsyncDefault,
8
- ASyncBoundMethodSyncDefault as ASyncBoundMethodSyncDefault,
7
+ ASyncBoundMethod,
8
+ ASyncBoundMethodAsyncDefault,
9
+ ASyncBoundMethodSyncDefault,
9
10
  )
10
- from a_sync.a_sync.modifiers.manager import ModifierManager as ModifierManager
11
- from typing import Any
11
+ from a_sync.a_sync.modifiers.manager import ModifierManager
12
12
 
13
- logger: Incomplete
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: Incomplete
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: AnyFn[P, T]) -> ASyncFunction[P, T]:
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 ASyncFunction instance with the appropriate default behavior.
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], Awaitable[__T]],
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, Awaitable[__T]], logger: Logger = logger, interval: int = _FIVE_MINUTES
67
- ) -> Callable[__P, Awaitable[__T]]: ...
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
  Metadata-Version: 2.1
2
2
  Name: ez_a_sync
3
- Version: 0.32.19
3
+ Version: 0.32.21
4
4
  Summary: A library that makes it easy to define objects that can be used for both sync and async use cases.
5
5
  Home-page: https://github.com/BobTheBuidler/a-sync
6
6
  Author: BobTheBuidler
@@ -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=UrDqNkHGqvSY4O9wM9ObaoOP00cLq1sM-ucRnUvLyKk,5726
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-38-i386-linux-gnu.so,sha256=BufXGlzhVwiRUJ5GHzjl9YtWpNXtiBdR2Kp6KqKyjRE,941272
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-38-i386-linux-gnu.so,sha256=mfFmGg9LonGqMAjnylVvTCJpQb3TwE6mOLUUAYwdzGU,625196
13
- a_sync/debugging.pyi,sha256=82AWVId_ghlFnIZkB3IQiEPqW9Yn3gKwknWNX6CCRLM,2257
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-38-i386-linux-gnu.so,sha256=abyUzRdoj7_it5lMIGj2dhqZOTJMnLTgJOaTUAdvIzI,640968
@@ -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-38-i386-linux-gnu.so,sha256=C4ISGbGdFqx1SEQyz28gcHyZEKEcpEGdraFrPwmDs0o,1951868
69
69
  a_sync/a_sync/function.pxd,sha256=QOGVstj2s4oQy18QwjCy--eu4pOlheVwWg3oiT2KDno,830
70
- a_sync/a_sync/function.pyi,sha256=3F4BQplDW0IU5wDlkvc0T9n58qMQHtop3EPo1GYV0rg,17737
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-38-i386-linux-gnu.so,sha256=NggzbvoU7kn9sH4yQAcTh--2y2d5kUMFlLsCok00gC0,1665916
@@ -170,8 +170,8 @@ a_sync/utils/repr.c,sha256=4HDcDzNN4_R5Z_QrhMy9kxWXK7iALDKpa--_D0k6_-Y,571751
170
170
  a_sync/utils/repr.cpython-38-i386-linux-gnu.so,sha256=5aabeJ1nXQjazISYC3bPPQqTYU5MhHpnw036KvYNGgQ,554656
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.19.dist-info/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075
174
- ez_a_sync-0.32.19.dist-info/METADATA,sha256=EEo63SAd87wDNTLxT44x1KCRZCfLFySD75wbde6YGHY,12961
175
- ez_a_sync-0.32.19.dist-info/WHEEL,sha256=bJYjb8WQy12IOgNJUB-nIaFYzFfCOeSKDIg7NuKd-h4,108
176
- ez_a_sync-0.32.19.dist-info/top_level.txt,sha256=ew2xVyFeZE_a5XMEL64h7-vJIbaBQieaFcvBAWUpU_s,7
177
- ez_a_sync-0.32.19.dist-info/RECORD,,
173
+ ez_a_sync-0.32.21.dist-info/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075
174
+ ez_a_sync-0.32.21.dist-info/METADATA,sha256=NXMj4gtOXpZY_FcIbTluFWibgd6kmL4jwghu_r4oN1c,12961
175
+ ez_a_sync-0.32.21.dist-info/WHEEL,sha256=bJYjb8WQy12IOgNJUB-nIaFYzFfCOeSKDIg7NuKd-h4,108
176
+ ez_a_sync-0.32.21.dist-info/top_level.txt,sha256=ew2xVyFeZE_a5XMEL64h7-vJIbaBQieaFcvBAWUpU_s,7
177
+ ez_a_sync-0.32.21.dist-info/RECORD,,