ez-a-sync 0.32.19__cp310-cp310-musllinux_1_2_x86_64.whl → 0.32.20__cp310-cp310-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.

@@ -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`
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ez_a_sync
3
- Version: 0.32.19
3
+ Version: 0.32.20
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
@@ -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-310-x86_64-linux-gnu.so,sha256=9fw5_Tm_Lw01u2uZPfGSXZNX8BdG_WX7j9h6Nx_rxjk,2001016
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-310-x86_64-linux-gnu.so,sha256=m2MjDmXvl346G46ZJKAEi7VpJ8sNfmnsR4S7gYd89GE,1718824
@@ -170,8 +170,8 @@ a_sync/utils/repr.c,sha256=4HDcDzNN4_R5Z_QrhMy9kxWXK7iALDKpa--_D0k6_-Y,571751
170
170
  a_sync/utils/repr.cpython-310-x86_64-linux-gnu.so,sha256=b9kf3CAe8J2pLcY0pF7C7oaFfHH_QG6a6_Om863oKPI,571112
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/METADATA,sha256=NuaaSw01fWTUiUPhwGWd1nVIxPWnFd1KA4v7UMeav30,13197
174
- ez_a_sync-0.32.19.dist-info/WHEEL,sha256=Q32eDsGiM1lqrvjwqh2-soedXHe8SkNGdE8tlPMx9gA,112
175
- ez_a_sync-0.32.19.dist-info/top_level.txt,sha256=ew2xVyFeZE_a5XMEL64h7-vJIbaBQieaFcvBAWUpU_s,7
176
- ez_a_sync-0.32.19.dist-info/RECORD,,
177
- ez_a_sync-0.32.19.dist-info/licenses/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075
173
+ ez_a_sync-0.32.20.dist-info/METADATA,sha256=KvmVrIasEnrF4_gOQK-MKZwFI5490DIu7VJ7MH9FlFQ,13197
174
+ ez_a_sync-0.32.20.dist-info/WHEEL,sha256=GyQD-Lw7OiIplQafOiKNWFqqKZQl4ONC1cFUqsEGb7M,112
175
+ ez_a_sync-0.32.20.dist-info/top_level.txt,sha256=ew2xVyFeZE_a5XMEL64h7-vJIbaBQieaFcvBAWUpU_s,7
176
+ ez_a_sync-0.32.20.dist-info/RECORD,,
177
+ ez_a_sync-0.32.20.dist-info/licenses/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.7.1)
2
+ Generator: setuptools (80.8.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp310-cp310-musllinux_1_2_x86_64
5
5