ez-a-sync 0.32.17__cp311-cp311-musllinux_1_2_i686.whl → 0.32.19__cp311-cp311-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.

@@ -729,10 +729,17 @@ cdef class _ASyncFunction(_ModifiedMixin):
729
729
  """
730
730
  modified_fn = self.__modified_fn
731
731
  if modified_fn is None:
732
+
733
+ # recursively unwrap ASync objects to get to the original wrapped callable
734
+ wrapped = self.__wrapped__
735
+ while isinstance(wrapped, _ASyncFunction):
736
+ wrapped = wrapped.__wrapped__
737
+
732
738
  if self.is_async_def():
733
- modified_fn = self.__modified_fn = self.modifiers.apply_async_modifiers(self.__wrapped__)
739
+ modified_fn = self.__modified_fn = self.modifiers.apply_async_modifiers(wrapped)
734
740
  else:
735
- modified_fn = self.__modified_fn = self.modifiers.apply_sync_modifiers(self.__wrapped__)
741
+ modified_fn = self.__modified_fn = self.modifiers.apply_sync_modifiers(wrapped)
742
+
736
743
  return modified_fn
737
744
 
738
745
  @property
@@ -815,7 +822,13 @@ cdef class _ASyncFunction(_ModifiedMixin):
815
822
  if self.__async_def_cached:
816
823
  return self.__async_def
817
824
  cdef bint async_def
818
- async_def = self.__async_def = iscoroutinefunction(self.__wrapped__)
825
+
826
+ # recursively unwrap ASync callables to get the original wrapped fn
827
+ wrapped = self.__wrapped__
828
+ while isinstance(wrapped, _ASyncFunction):
829
+ wrapped = wrapped.__wrapped__
830
+
831
+ async_def = self.__async_def = iscoroutinefunction(wrapped)
819
832
  self.__async_def_cached = True
820
833
  return async_def
821
834
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ez_a_sync
3
- Version: 0.32.17
3
+ Version: 0.32.19
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
@@ -64,11 +64,11 @@ a_sync/a_sync/flags.cpython-311-i386-linux-musl.so,sha256=DTkUn1p0SWi-sOGsUcRFhP
64
64
  a_sync/a_sync/flags.pxd,sha256=Jxe9hvWn-mPfGXHXLEvRPM2i44c4y2D4iq4ZqZZst80,2238
65
65
  a_sync/a_sync/flags.pyi,sha256=PPAqrtJOvabVudb_yT32yZ95PP15uzzuXD2NirkWqTw,2229
66
66
  a_sync/a_sync/flags.pyx,sha256=PU_DAZzoXhn-Z-okbTu0p6stnwnKsSEn781TryRRs0E,2305
67
- a_sync/a_sync/function.c,sha256=NCx-C-d1UPEP7cWvCmwHw1TAyNs1p4kHd21EeLiHoME,1712834
68
- a_sync/a_sync/function.cpython-311-i386-linux-musl.so,sha256=LhsSnL0R2cwTEwyg9VEpuY0GDp7Yz5IVrrwqbP5q-_c,2005972
67
+ a_sync/a_sync/function.c,sha256=G0iXdFKURVdBDDOND6ZI1mEy29npz4O5nh9B1aEx114,1715536
68
+ a_sync/a_sync/function.cpython-311-i386-linux-musl.so,sha256=6KsQC0_6hyC2GMBQjHwFXArF6R03GPj6zpPUy0JIzqg,2019812
69
69
  a_sync/a_sync/function.pxd,sha256=QOGVstj2s4oQy18QwjCy--eu4pOlheVwWg3oiT2KDno,830
70
70
  a_sync/a_sync/function.pyi,sha256=3F4BQplDW0IU5wDlkvc0T9n58qMQHtop3EPo1GYV0rg,17737
71
- a_sync/a_sync/function.pyx,sha256=YqIh6u0xHl8lRcKvXCtwASoA1Fu6hxFlamZck2JfybM,45792
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-311-i386-linux-musl.so,sha256=_aJ4XJyt2wFnsQrtA98fHKIip4xKP6m2-AwPgS5AU70,1757560
74
74
  a_sync/a_sync/method.pxd,sha256=TMlVXxWOGc6r-4duaRSi_kEPe24Be1mpeISZNqktqXg,472
@@ -170,8 +170,8 @@ a_sync/utils/repr.c,sha256=4HDcDzNN4_R5Z_QrhMy9kxWXK7iALDKpa--_D0k6_-Y,571751
170
170
  a_sync/utils/repr.cpython-311-i386-linux-musl.so,sha256=h0_7VzWP6qRe6_eLjq_PPnito-C4_HCMw-Iiz_CZRcM,574456
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.17.dist-info/METADATA,sha256=oWjFySa4SM26anM8W9ht4wW6jmABmoge0fgpocxc-hA,13197
174
- ez_a_sync-0.32.17.dist-info/WHEEL,sha256=Tvo3dPyAZeB4pKSMLyEy9dJwCWISj00zkZVfm-ErvBw,110
175
- ez_a_sync-0.32.17.dist-info/top_level.txt,sha256=ew2xVyFeZE_a5XMEL64h7-vJIbaBQieaFcvBAWUpU_s,7
176
- ez_a_sync-0.32.17.dist-info/RECORD,,
177
- ez_a_sync-0.32.17.dist-info/licenses/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075
173
+ ez_a_sync-0.32.19.dist-info/METADATA,sha256=NuaaSw01fWTUiUPhwGWd1nVIxPWnFd1KA4v7UMeav30,13197
174
+ ez_a_sync-0.32.19.dist-info/WHEEL,sha256=Tvo3dPyAZeB4pKSMLyEy9dJwCWISj00zkZVfm-ErvBw,110
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