ez-a-sync 0.32.27__cp311-cp311-musllinux_1_2_i686.whl → 0.32.28__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.

Files changed (69) hide show
  1. a_sync/_smart.c +41 -36
  2. a_sync/_smart.cpython-311-i386-linux-musl.so +0 -0
  3. a_sync/a_sync/_descriptor.c +63 -58
  4. a_sync/a_sync/_descriptor.cpython-311-i386-linux-musl.so +0 -0
  5. a_sync/a_sync/_flags.c +10 -10
  6. a_sync/a_sync/_flags.cpython-311-i386-linux-musl.so +0 -0
  7. a_sync/a_sync/_helpers.c +57 -52
  8. a_sync/a_sync/_helpers.cpython-311-i386-linux-musl.so +0 -0
  9. a_sync/a_sync/_kwargs.c +27 -22
  10. a_sync/a_sync/_kwargs.cpython-311-i386-linux-musl.so +0 -0
  11. a_sync/a_sync/abstract.c +46 -23
  12. a_sync/a_sync/abstract.cpython-311-i386-linux-musl.so +0 -0
  13. a_sync/a_sync/abstract.pyi +2 -2
  14. a_sync/a_sync/base.c +60 -51
  15. a_sync/a_sync/base.cpython-311-i386-linux-musl.so +0 -0
  16. a_sync/a_sync/flags.c +10 -10
  17. a_sync/a_sync/function.c +79 -65
  18. a_sync/a_sync/function.cpython-311-i386-linux-musl.so +0 -0
  19. a_sync/a_sync/method.c +85 -68
  20. a_sync/a_sync/method.cpython-311-i386-linux-musl.so +0 -0
  21. a_sync/a_sync/method.pyi +2 -1
  22. a_sync/a_sync/modifiers/manager.c +42 -37
  23. a_sync/a_sync/modifiers/manager.cpython-311-i386-linux-musl.so +0 -0
  24. a_sync/a_sync/property.c +86 -75
  25. a_sync/a_sync/property.cpython-311-i386-linux-musl.so +0 -0
  26. a_sync/async_property/cached.c +53 -48
  27. a_sync/async_property/cached.cpython-311-i386-linux-musl.so +0 -0
  28. a_sync/async_property/proxy.c +15 -10
  29. a_sync/async_property/proxy.cpython-311-i386-linux-musl.so +0 -0
  30. a_sync/asyncio/as_completed.c +15 -10
  31. a_sync/asyncio/as_completed.cpython-311-i386-linux-musl.so +0 -0
  32. a_sync/asyncio/create_task.c +39 -16
  33. a_sync/asyncio/create_task.cpython-311-i386-linux-musl.so +0 -0
  34. a_sync/asyncio/gather.c +24 -19
  35. a_sync/asyncio/gather.cpython-311-i386-linux-musl.so +0 -0
  36. a_sync/asyncio/igather.c +26 -17
  37. a_sync/asyncio/igather.cpython-311-i386-linux-musl.so +0 -0
  38. a_sync/asyncio/sleep.c +8 -3
  39. a_sync/asyncio/sleep.cpython-311-i386-linux-musl.so +0 -0
  40. a_sync/debugging.c +34 -29
  41. a_sync/debugging.cpython-311-i386-linux-musl.so +0 -0
  42. a_sync/exceptions.c +28 -19
  43. a_sync/exceptions.cpython-311-i386-linux-musl.so +0 -0
  44. a_sync/functools.c +15 -10
  45. a_sync/functools.cpython-311-i386-linux-musl.so +0 -0
  46. a_sync/iter.c +145 -90
  47. a_sync/iter.cpython-311-i386-linux-musl.so +0 -0
  48. a_sync/primitives/_debug.c +43 -38
  49. a_sync/primitives/_debug.cpython-311-i386-linux-musl.so +0 -0
  50. a_sync/primitives/_loggable.c +29 -18
  51. a_sync/primitives/_loggable.cpython-311-i386-linux-musl.so +0 -0
  52. a_sync/primitives/locks/counter.c +75 -60
  53. a_sync/primitives/locks/counter.cpython-311-i386-linux-musl.so +0 -0
  54. a_sync/primitives/locks/event.c +47 -42
  55. a_sync/primitives/locks/event.cpython-311-i386-linux-musl.so +0 -0
  56. a_sync/primitives/locks/prio_semaphore.c +99 -74
  57. a_sync/primitives/locks/prio_semaphore.cpython-311-i386-linux-musl.so +0 -0
  58. a_sync/primitives/locks/prio_semaphore.pyi +2 -2
  59. a_sync/primitives/locks/semaphore.c +71 -59
  60. a_sync/primitives/locks/semaphore.cpython-311-i386-linux-musl.so +0 -0
  61. a_sync/primitives/locks/semaphore.pyi +10 -9
  62. a_sync/primitives/queue.py +5 -1
  63. a_sync/utils/repr.c +36 -31
  64. a_sync/utils/repr.cpython-311-i386-linux-musl.so +0 -0
  65. {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/METADATA +1 -1
  66. {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/RECORD +69 -69
  67. {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/WHEEL +0 -0
  68. {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/licenses/LICENSE.txt +0 -0
  69. {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/top_level.txt +0 -0
a_sync/a_sync/method.c CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated by Cython 3.1.3 */
1
+ /* Generated by Cython 3.1.4 */
2
2
 
3
3
  /* BEGIN: Cython Metadata
4
4
  {
@@ -32,8 +32,8 @@ END: Cython Metadata */
32
32
  #elif PY_VERSION_HEX < 0x03080000
33
33
  #error Cython requires Python 3.8+.
34
34
  #else
35
- #define __PYX_ABI_VERSION "3_1_3"
36
- #define CYTHON_HEX_VERSION 0x030103F0
35
+ #define __PYX_ABI_VERSION "3_1_4"
36
+ #define CYTHON_HEX_VERSION 0x030104F0
37
37
  #define CYTHON_FUTURE_DIVISION 1
38
38
  /* CModulePreamble */
39
39
  #include <stddef.h>
@@ -2038,18 +2038,18 @@ static PyObject *__Pyx_GetBuiltinName(PyObject *name);
2038
2038
  if (!__Pyx_PyThreadState_Current->tracing) {\
2039
2039
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
2040
2040
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
2041
- if (unlikely(!__pyx_frame_code)) goto_error;\
2042
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2043
- }\
2041
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
2042
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2043
+ } else __pyx_frame_code = NULL;\
2044
2044
  PyGILState_Release(state);\
2045
- }\
2045
+ } else __pyx_frame_code = NULL;\
2046
2046
  } else {\
2047
2047
  if (!__Pyx_PyThreadState_Current->tracing) {\
2048
2048
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
2049
2049
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
2050
- if (unlikely(!__pyx_frame_code)) goto_error;\
2051
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2052
- }\
2050
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
2051
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2052
+ } else __pyx_frame_code = NULL;\
2053
2053
  }\
2054
2054
  if (unlikely(ret == -1)) goto_error;\
2055
2055
  }
@@ -2996,22 +2996,22 @@ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, trav
2996
2996
  static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear);
2997
2997
 
2998
2998
  /* TypeImport.proto */
2999
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_3
3000
- #define __PYX_HAVE_RT_ImportType_proto_3_1_3
2999
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_4
3000
+ #define __PYX_HAVE_RT_ImportType_proto_3_1_4
3001
3001
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
3002
3002
  #include <stdalign.h>
3003
3003
  #endif
3004
3004
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
3005
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) alignof(s)
3005
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) alignof(s)
3006
3006
  #else
3007
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) sizeof(void*)
3007
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) sizeof(void*)
3008
3008
  #endif
3009
- enum __Pyx_ImportType_CheckSize_3_1_3 {
3010
- __Pyx_ImportType_CheckSize_Error_3_1_3 = 0,
3011
- __Pyx_ImportType_CheckSize_Warn_3_1_3 = 1,
3012
- __Pyx_ImportType_CheckSize_Ignore_3_1_3 = 2
3009
+ enum __Pyx_ImportType_CheckSize_3_1_4 {
3010
+ __Pyx_ImportType_CheckSize_Error_3_1_4 = 0,
3011
+ __Pyx_ImportType_CheckSize_Warn_3_1_4 = 1,
3012
+ __Pyx_ImportType_CheckSize_Ignore_3_1_4 = 2
3013
3013
  };
3014
- static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size);
3014
+ static PyTypeObject *__Pyx_ImportType_3_1_4(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size);
3015
3015
  #endif
3016
3016
 
3017
3017
  /* GetVTable.proto */
@@ -3287,7 +3287,7 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
3287
3287
  static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig);
3288
3288
 
3289
3289
  /* FunctionImport.proto */
3290
- static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
3290
+ static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
3291
3291
 
3292
3292
  /* MultiPhaseInitModuleState.proto */
3293
3293
  #if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
@@ -8715,8 +8715,14 @@ static int __pyx_f_6a_sync_6a_sync_6method__should_await(struct __pyx_obj_6a_syn
8715
8715
  * elif default := self.get_default():
8716
8716
  */
8717
8717
  __Pyx_TraceLine(506,7,0,__PYX_ERR(0, 506, __pyx_L1_error))
8718
- __pyx_t_2 = (__pyx_v_flag != Py_None)&&(__Pyx_PyUnicode_IS_TRUE(__pyx_v_flag) != 0);
8719
- if (unlikely(((!CYTHON_ASSUME_SAFE_MACROS) && __pyx_t_2 < 0))) __PYX_ERR(0, 506, __pyx_L1_error)
8718
+ if (__pyx_v_flag == Py_None) __pyx_t_2 = 0;
8719
+ else
8720
+ {
8721
+ Py_ssize_t __pyx_temp = __Pyx_PyUnicode_IS_TRUE(__pyx_v_flag);
8722
+ if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 506, __pyx_L1_error)
8723
+ __pyx_t_2 = (__pyx_temp != 0);
8724
+ }
8725
+
8720
8726
  if (__pyx_t_2) {
8721
8727
 
8722
8728
  /* "a_sync/a_sync/method.pyx":507
@@ -8753,8 +8759,14 @@ static int __pyx_f_6a_sync_6a_sync_6method__should_await(struct __pyx_obj_6a_syn
8753
8759
  __Pyx_GOTREF(__pyx_t_1);
8754
8760
  __Pyx_INCREF(__pyx_t_1);
8755
8761
  __pyx_v_default = ((PyObject*)__pyx_t_1);
8756
- __pyx_t_2 = (__pyx_t_1 != Py_None)&&(__Pyx_PyUnicode_IS_TRUE(__pyx_t_1) != 0);
8757
- if (unlikely(((!CYTHON_ASSUME_SAFE_MACROS) && __pyx_t_2 < 0))) __PYX_ERR(0, 508, __pyx_L1_error)
8762
+ if (__pyx_t_1 == Py_None) __pyx_t_2 = 0;
8763
+ else
8764
+ {
8765
+ Py_ssize_t __pyx_temp = __Pyx_PyUnicode_IS_TRUE(__pyx_t_1);
8766
+ if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 508, __pyx_L1_error)
8767
+ __pyx_t_2 = (__pyx_temp != 0);
8768
+ }
8769
+
8758
8770
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8759
8771
  if (__pyx_t_2) {
8760
8772
 
@@ -17620,15 +17632,15 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
17620
17632
  /*--- Type init code ---*/
17621
17633
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.function"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
17622
17634
  __Pyx_GOTREF(__pyx_t_1);
17623
- __pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.a_sync.function", "_ASyncFunction",
17635
+ __pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.a_sync.function", "_ASyncFunction",
17624
17636
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
17625
- sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
17637
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
17626
17638
  #elif CYTHON_COMPILING_IN_LIMITED_API
17627
- sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
17639
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
17628
17640
  #else
17629
- sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
17641
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
17630
17642
  #endif
17631
- __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction) __PYX_ERR(0, 1, __pyx_L1_error)
17643
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction) __PYX_ERR(0, 1, __pyx_L1_error)
17632
17644
  __pyx_vtabptr_6a_sync_6a_sync_8function__ASyncFunction = (struct __pyx_vtabstruct_6a_sync_6a_sync_8function__ASyncFunction*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction); if (unlikely(!__pyx_vtabptr_6a_sync_6a_sync_8function__ASyncFunction)) __PYX_ERR(0, 1, __pyx_L1_error)
17633
17645
  __pyx_vtabptr_6a_sync_6a_sync_6method__ASyncBoundMethod = &__pyx_vtable_6a_sync_6a_sync_6method__ASyncBoundMethod;
17634
17646
  __pyx_vtable_6a_sync_6a_sync_6method__ASyncBoundMethod.__pyx_base = *__pyx_vtabptr_6a_sync_6a_sync_8function__ASyncFunction;
@@ -17806,53 +17818,53 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
17806
17818
  /*--- Type import code ---*/
17807
17819
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.modifiers.manager"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1, __pyx_L1_error)
17808
17820
  __Pyx_GOTREF(__pyx_t_1);
17809
- __pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.a_sync.modifiers.manager", "ModifierManager",
17821
+ __pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.a_sync.modifiers.manager", "ModifierManager",
17810
17822
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
17811
- sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
17823
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
17812
17824
  #elif CYTHON_COMPILING_IN_LIMITED_API
17813
- sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
17825
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
17814
17826
  #else
17815
- sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
17827
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
17816
17828
  #endif
17817
- __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager) __PYX_ERR(3, 1, __pyx_L1_error)
17829
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager) __PYX_ERR(3, 1, __pyx_L1_error)
17818
17830
  __pyx_vtabptr_6a_sync_6a_sync_9modifiers_7manager_ModifierManager = (struct __pyx_vtabstruct_6a_sync_6a_sync_9modifiers_7manager_ModifierManager*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager); if (unlikely(!__pyx_vtabptr_6a_sync_6a_sync_9modifiers_7manager_ModifierManager)) __PYX_ERR(3, 1, __pyx_L1_error)
17819
17831
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17820
17832
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.function"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 3, __pyx_L1_error)
17821
17833
  __Pyx_GOTREF(__pyx_t_1);
17822
- __pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.a_sync.function", "_ModifiedMixin",
17834
+ __pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.a_sync.function", "_ModifiedMixin",
17823
17835
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
17824
- sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
17836
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
17825
17837
  #elif CYTHON_COMPILING_IN_LIMITED_API
17826
- sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
17838
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
17827
17839
  #else
17828
- sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
17840
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
17829
17841
  #endif
17830
- __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin) __PYX_ERR(4, 3, __pyx_L1_error)
17842
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin) __PYX_ERR(4, 3, __pyx_L1_error)
17831
17843
  __pyx_vtabptr_6a_sync_6a_sync_8function__ModifiedMixin = (struct __pyx_vtabstruct_6a_sync_6a_sync_8function__ModifiedMixin*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin); if (unlikely(!__pyx_vtabptr_6a_sync_6a_sync_8function__ModifiedMixin)) __PYX_ERR(4, 3, __pyx_L1_error)
17832
17844
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17833
17845
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 9, __pyx_L1_error)
17834
17846
  __Pyx_GOTREF(__pyx_t_1);
17835
- __pyx_mstate->__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_1_3(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
17847
+ __pyx_mstate->__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_1_4(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
17836
17848
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
17837
- sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(PyTypeObject),
17849
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(PyTypeObject),
17838
17850
  #elif CYTHON_COMPILING_IN_LIMITED_API
17839
17851
  0, 0,
17840
17852
  #else
17841
- sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(PyHeapTypeObject),
17853
+ sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(PyHeapTypeObject),
17842
17854
  #endif
17843
- __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_7cpython_4type_type) __PYX_ERR(5, 9, __pyx_L1_error)
17855
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_7cpython_4type_type) __PYX_ERR(5, 9, __pyx_L1_error)
17844
17856
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17845
17857
  __pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 1, __pyx_L1_error)
17846
17858
  __Pyx_GOTREF(__pyx_t_1);
17847
- __pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
17859
+ __pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
17848
17860
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
17849
- sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
17861
+ sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
17850
17862
  #elif CYTHON_COMPILING_IN_LIMITED_API
17851
- sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
17863
+ sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
17852
17864
  #else
17853
- sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
17865
+ sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
17854
17866
  #endif
17855
- __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe) __PYX_ERR(6, 1, __pyx_L1_error)
17867
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe) __PYX_ERR(6, 1, __pyx_L1_error)
17856
17868
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17857
17869
  __Pyx_RefNannyFinishContext();
17858
17870
  return 0;
@@ -17882,16 +17894,16 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
17882
17894
  /*--- Function import code ---*/
17883
17895
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._kwargs"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
17884
17896
  __Pyx_GOTREF(__pyx_t_1);
17885
- if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "get_flag_name", (void (**)(void))&__pyx_f_6a_sync_6a_sync_7_kwargs_get_flag_name, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
17886
- if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "is_sync", (void (**)(void))&__pyx_f_6a_sync_6a_sync_7_kwargs_is_sync, "int (PyObject *, PyObject *, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
17897
+ if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "get_flag_name", (void (**)(void))&__pyx_f_6a_sync_6a_sync_7_kwargs_get_flag_name, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
17898
+ if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "is_sync", (void (**)(void))&__pyx_f_6a_sync_6a_sync_7_kwargs_is_sync, "int (PyObject *, PyObject *, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
17887
17899
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17888
17900
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._helpers"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
17889
17901
  __Pyx_GOTREF(__pyx_t_1);
17890
- if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "_await", (void (**)(void))&__pyx_f_6a_sync_6a_sync_8_helpers__await, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
17902
+ if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "_await", (void (**)(void))&__pyx_f_6a_sync_6a_sync_8_helpers__await, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
17891
17903
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17892
17904
  __pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
17893
17905
  __Pyx_GOTREF(__pyx_t_1);
17894
- if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "update_wrapper", (void (**)(void))&__pyx_f_6a_sync_9functools_update_wrapper, "PyObject *(PyObject *, PyObject *, int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
17906
+ if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "update_wrapper", (void (**)(void))&__pyx_f_6a_sync_9functools_update_wrapper, "PyObject *(PyObject *, PyObject *, int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
17895
17907
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17896
17908
  __Pyx_RefNannyFinishContext();
17897
17909
  return 0;
@@ -18192,7 +18204,7 @@ __Pyx_RefNannySetupContext("PyInit_method", 0);
18192
18204
  (void)__Pyx_modinit_variable_import_code(__pyx_mstate);
18193
18205
  if (unlikely((__Pyx_modinit_function_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
18194
18206
  /*--- Execution code ---*/
18195
- __Pyx_TraceStartFunc("PyInit_method", __pyx_f[0], 1, 1, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
18207
+ __Pyx_TraceStartFunc("PyInit_method", __pyx_f[0], 1, 2, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
18196
18208
 
18197
18209
  /* "a_sync/a_sync/method.pyx":11
18198
18210
  * # mypy: disable-error-code=valid-type
@@ -20576,7 +20588,7 @@ __Pyx_RefNannySetupContext("PyInit_method", 0);
20576
20588
  * cdef object __pyx_PickleError
20577
20589
  * cdef object __pyx_result
20578
20590
  */
20579
- __Pyx_TraceLine(1,2,0,__PYX_ERR(2, 1, __pyx_L1_error))
20591
+ __Pyx_TraceLine(1,1,0,__PYX_ERR(2, 1, __pyx_L1_error))
20580
20592
  __pyx_t_10 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_6a_sync_6method_1__pyx_unpickle__ASyncBoundMethod, 0, __pyx_mstate_global->__pyx_n_u_pyx_unpickle__ASyncBoundMethod, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_a_sync_method, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[55])); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 1, __pyx_L1_error)
20581
20593
  __Pyx_GOTREF(__pyx_t_10);
20582
20594
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_pyx_unpickle__ASyncBoundMethod, __pyx_t_10) < 0) __PYX_ERR(2, 1, __pyx_L1_error)
@@ -20597,7 +20609,7 @@ __Pyx_RefNannySetupContext("PyInit_method", 0);
20597
20609
  * This module provides classes for implementing dual-functional sync/async methods in Python.
20598
20610
  *
20599
20611
  */
20600
- __Pyx_TraceLine(1,1,0,__PYX_ERR(0, 1, __pyx_L1_error))
20612
+ __Pyx_TraceLine(1,2,0,__PYX_ERR(0, 1, __pyx_L1_error))
20601
20613
  __pyx_t_10 = __Pyx_PyDict_NewPresized(21); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1, __pyx_L1_error)
20602
20614
  __Pyx_GOTREF(__pyx_t_10);
20603
20615
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_ASyncMethodDescriptor___call___l, __pyx_mstate_global->__pyx_kp_u_Asynchronously_call_the_method) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
@@ -20623,7 +20635,7 @@ __Pyx_RefNannySetupContext("PyInit_method", 0);
20623
20635
  if (PyDict_SetItem(__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_ASyncBoundMethodAsyncDefault___c_2, __pyx_mstate_global->__pyx_kp_u_Call_the_bound_method_with_asyn) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
20624
20636
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_10) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
20625
20637
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
20626
- __Pyx_TraceReturnValue(Py_None, 1, 0, __PYX_ERR(0, 1, __pyx_L1_error));
20638
+ __Pyx_TraceReturnValue(Py_None, 2, 0, __PYX_ERR(0, 1, __pyx_L1_error));
20627
20639
  __Pyx_PyMonitoring_ExitScope(0);
20628
20640
 
20629
20641
  /*--- Wrapped vars code ---*/
@@ -20639,7 +20651,7 @@ __Pyx_RefNannySetupContext("PyInit_method", 0);
20639
20651
  __Pyx_XDECREF(__pyx_t_10);
20640
20652
  __Pyx_XDECREF(__pyx_t_11);
20641
20653
  __Pyx_TraceException(__pyx_lineno, 0, 0);
20642
- __Pyx_TraceExceptionUnwind(1, 0);
20654
+ __Pyx_TraceExceptionUnwind(2, 0);
20643
20655
  if (__pyx_m) {
20644
20656
  if (__pyx_mstate->__pyx_d && stringtab_initialized) {
20645
20657
  __Pyx_AddTraceback("init a_sync.a_sync.method", __pyx_clineno, __pyx_lineno, __pyx_filename);
@@ -23077,6 +23089,7 @@ static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
23077
23089
  return -1;
23078
23090
  }
23079
23091
  mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
23092
+ Py_DECREF(bases);
23080
23093
  if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
23081
23094
  return -1;
23082
23095
  }
@@ -26068,15 +26081,15 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
26068
26081
  }
26069
26082
 
26070
26083
  /* TypeImport */
26071
- #ifndef __PYX_HAVE_RT_ImportType_3_1_3
26072
- #define __PYX_HAVE_RT_ImportType_3_1_3
26073
- static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module_name, const char *class_name,
26074
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size)
26084
+ #ifndef __PYX_HAVE_RT_ImportType_3_1_4
26085
+ #define __PYX_HAVE_RT_ImportType_3_1_4
26086
+ static PyTypeObject *__Pyx_ImportType_3_1_4(PyObject *module, const char *module_name, const char *class_name,
26087
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size)
26075
26088
  {
26076
26089
  PyObject *result = 0;
26077
26090
  Py_ssize_t basicsize;
26078
26091
  Py_ssize_t itemsize;
26079
- #if CYTHON_COMPILING_IN_LIMITED_API
26092
+ #ifdef Py_LIMITED_API
26080
26093
  PyObject *py_basicsize;
26081
26094
  PyObject *py_itemsize;
26082
26095
  #endif
@@ -26089,7 +26102,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
26089
26102
  module_name, class_name);
26090
26103
  goto bad;
26091
26104
  }
26092
- #if !CYTHON_COMPILING_IN_LIMITED_API
26105
+ #ifndef Py_LIMITED_API
26093
26106
  basicsize = ((PyTypeObject *)result)->tp_basicsize;
26094
26107
  itemsize = ((PyTypeObject *)result)->tp_itemsize;
26095
26108
  #else
@@ -26127,7 +26140,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
26127
26140
  module_name, class_name, size, basicsize+itemsize);
26128
26141
  goto bad;
26129
26142
  }
26130
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_3 &&
26143
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_4 &&
26131
26144
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
26132
26145
  PyErr_Format(PyExc_ValueError,
26133
26146
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -26135,7 +26148,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
26135
26148
  module_name, class_name, size, basicsize, basicsize+itemsize);
26136
26149
  goto bad;
26137
26150
  }
26138
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_3 && (size_t)basicsize > size) {
26151
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_4 && (size_t)basicsize > size) {
26139
26152
  if (PyErr_WarnFormat(NULL, 0,
26140
26153
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
26141
26154
  "Expected %zd from C header, got %zd from PyObject",
@@ -29236,9 +29249,9 @@ bad:
29236
29249
  }
29237
29250
 
29238
29251
  /* FunctionImport */
29239
- #ifndef __PYX_HAVE_RT_ImportFunction_3_1_3
29240
- #define __PYX_HAVE_RT_ImportFunction_3_1_3
29241
- static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
29252
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_4
29253
+ #define __PYX_HAVE_RT_ImportFunction_3_1_4
29254
+ static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
29242
29255
  PyObject *d = 0;
29243
29256
  PyObject *cobj = 0;
29244
29257
  union {
@@ -29340,6 +29353,10 @@ bad:
29340
29353
  PyCode_NewWithPosOnlyArgs
29341
29354
  #endif
29342
29355
  (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
29356
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
29357
+ if (likely(result))
29358
+ result->_co_firsttraceable = 0;
29359
+ #endif
29343
29360
  return result;
29344
29361
  }
29345
29362
  #elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY
a_sync/a_sync/method.pyi CHANGED
@@ -8,6 +8,7 @@ asynchronously based on various conditions and configurations.
8
8
 
9
9
  from a_sync._typing import *
10
10
  import functools
11
+ import logging
11
12
  import weakref
12
13
  from _typeshed import Incomplete
13
14
  from a_sync import TaskMapping as TaskMapping
@@ -21,7 +22,7 @@ from a_sync.a_sync.function import (
21
22
  from typing import Any, final
22
23
 
23
24
  METHOD_CACHE_TTL: Literal[3600]
24
- logger: Incomplete
25
+ logger: logging.Logger
25
26
 
26
27
  class ASyncMethodDescriptor(ASyncDescriptor[I, P, T]):
27
28
  """
@@ -1,4 +1,4 @@
1
- /* Generated by Cython 3.1.3 */
1
+ /* Generated by Cython 3.1.4 */
2
2
 
3
3
  /* BEGIN: Cython Metadata
4
4
  {
@@ -30,8 +30,8 @@ END: Cython Metadata */
30
30
  #elif PY_VERSION_HEX < 0x03080000
31
31
  #error Cython requires Python 3.8+.
32
32
  #else
33
- #define __PYX_ABI_VERSION "3_1_3"
34
- #define CYTHON_HEX_VERSION 0x030103F0
33
+ #define __PYX_ABI_VERSION "3_1_4"
34
+ #define CYTHON_HEX_VERSION 0x030104F0
35
35
  #define CYTHON_FUTURE_DIVISION 1
36
36
  /* CModulePreamble */
37
37
  #include <stddef.h>
@@ -2043,18 +2043,18 @@ static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *nam
2043
2043
  if (!__Pyx_PyThreadState_Current->tracing) {\
2044
2044
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
2045
2045
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
2046
- if (unlikely(!__pyx_frame_code)) goto_error;\
2047
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2048
- }\
2046
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
2047
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2048
+ } else __pyx_frame_code = NULL;\
2049
2049
  PyGILState_Release(state);\
2050
- }\
2050
+ } else __pyx_frame_code = NULL;\
2051
2051
  } else {\
2052
2052
  if (!__Pyx_PyThreadState_Current->tracing) {\
2053
2053
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
2054
2054
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
2055
- if (unlikely(!__pyx_frame_code)) goto_error;\
2056
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2057
- }\
2055
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
2056
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2057
+ } else __pyx_frame_code = NULL;\
2058
2058
  }\
2059
2059
  if (unlikely(ret == -1)) goto_error;\
2060
2060
  }
@@ -2699,22 +2699,22 @@ static void* __Pyx_GetVtable(PyTypeObject *type);
2699
2699
  static int __Pyx_MergeVtables(PyTypeObject *type);
2700
2700
 
2701
2701
  /* TypeImport.proto */
2702
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_3
2703
- #define __PYX_HAVE_RT_ImportType_proto_3_1_3
2702
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_4
2703
+ #define __PYX_HAVE_RT_ImportType_proto_3_1_4
2704
2704
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
2705
2705
  #include <stdalign.h>
2706
2706
  #endif
2707
2707
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
2708
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) alignof(s)
2708
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) alignof(s)
2709
2709
  #else
2710
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) sizeof(void*)
2710
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) sizeof(void*)
2711
2711
  #endif
2712
- enum __Pyx_ImportType_CheckSize_3_1_3 {
2713
- __Pyx_ImportType_CheckSize_Error_3_1_3 = 0,
2714
- __Pyx_ImportType_CheckSize_Warn_3_1_3 = 1,
2715
- __Pyx_ImportType_CheckSize_Ignore_3_1_3 = 2
2712
+ enum __Pyx_ImportType_CheckSize_3_1_4 {
2713
+ __Pyx_ImportType_CheckSize_Error_3_1_4 = 0,
2714
+ __Pyx_ImportType_CheckSize_Warn_3_1_4 = 1,
2715
+ __Pyx_ImportType_CheckSize_Ignore_3_1_4 = 2
2716
2716
  };
2717
- static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size);
2717
+ static PyTypeObject *__Pyx_ImportType_3_1_4(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size);
2718
2718
  #endif
2719
2719
 
2720
2720
  /* Import.proto */
@@ -2989,7 +2989,7 @@ static unsigned long __Pyx_get_runtime_version(void);
2989
2989
  static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);
2990
2990
 
2991
2991
  /* FunctionImport.proto */
2992
- static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2992
+ static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2993
2993
 
2994
2994
  /* MultiPhaseInitModuleState.proto */
2995
2995
  #if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
@@ -7395,15 +7395,15 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
7395
7395
  /*--- Type import code ---*/
7396
7396
  __pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1, __pyx_L1_error)
7397
7397
  __Pyx_GOTREF(__pyx_t_1);
7398
- __pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
7398
+ __pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
7399
7399
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
7400
- sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
7400
+ sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
7401
7401
  #elif CYTHON_COMPILING_IN_LIMITED_API
7402
- sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
7402
+ sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
7403
7403
  #else
7404
- sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
7404
+ sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
7405
7405
  #endif
7406
- __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe) __PYX_ERR(2, 1, __pyx_L1_error)
7406
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe) __PYX_ERR(2, 1, __pyx_L1_error)
7407
7407
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7408
7408
  __Pyx_RefNannyFinishContext();
7409
7409
  return 0;
@@ -7433,7 +7433,7 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
7433
7433
  /*--- Function import code ---*/
7434
7434
  __pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
7435
7435
  __Pyx_GOTREF(__pyx_t_1);
7436
- if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "wraps", (void (**)(void))&__pyx_f_6a_sync_9functools_wraps, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
7436
+ if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "wraps", (void (**)(void))&__pyx_f_6a_sync_9functools_wraps, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
7437
7437
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7438
7438
  __Pyx_RefNannyFinishContext();
7439
7439
  return 0;
@@ -11222,6 +11222,7 @@ static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
11222
11222
  return -1;
11223
11223
  }
11224
11224
  mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
11225
+ Py_DECREF(bases);
11225
11226
  if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
11226
11227
  return -1;
11227
11228
  }
@@ -12746,15 +12747,15 @@ other_failure:
12746
12747
  }
12747
12748
 
12748
12749
  /* TypeImport */
12749
- #ifndef __PYX_HAVE_RT_ImportType_3_1_3
12750
- #define __PYX_HAVE_RT_ImportType_3_1_3
12751
- static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module_name, const char *class_name,
12752
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size)
12750
+ #ifndef __PYX_HAVE_RT_ImportType_3_1_4
12751
+ #define __PYX_HAVE_RT_ImportType_3_1_4
12752
+ static PyTypeObject *__Pyx_ImportType_3_1_4(PyObject *module, const char *module_name, const char *class_name,
12753
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size)
12753
12754
  {
12754
12755
  PyObject *result = 0;
12755
12756
  Py_ssize_t basicsize;
12756
12757
  Py_ssize_t itemsize;
12757
- #if CYTHON_COMPILING_IN_LIMITED_API
12758
+ #ifdef Py_LIMITED_API
12758
12759
  PyObject *py_basicsize;
12759
12760
  PyObject *py_itemsize;
12760
12761
  #endif
@@ -12767,7 +12768,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
12767
12768
  module_name, class_name);
12768
12769
  goto bad;
12769
12770
  }
12770
- #if !CYTHON_COMPILING_IN_LIMITED_API
12771
+ #ifndef Py_LIMITED_API
12771
12772
  basicsize = ((PyTypeObject *)result)->tp_basicsize;
12772
12773
  itemsize = ((PyTypeObject *)result)->tp_itemsize;
12773
12774
  #else
@@ -12805,7 +12806,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
12805
12806
  module_name, class_name, size, basicsize+itemsize);
12806
12807
  goto bad;
12807
12808
  }
12808
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_3 &&
12809
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_4 &&
12809
12810
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
12810
12811
  PyErr_Format(PyExc_ValueError,
12811
12812
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -12813,7 +12814,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
12813
12814
  module_name, class_name, size, basicsize, basicsize+itemsize);
12814
12815
  goto bad;
12815
12816
  }
12816
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_3 && (size_t)basicsize > size) {
12817
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_4 && (size_t)basicsize > size) {
12817
12818
  if (PyErr_WarnFormat(NULL, 0,
12818
12819
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
12819
12820
  "Expected %zd from C header, got %zd from PyObject",
@@ -15520,9 +15521,9 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
15520
15521
  }
15521
15522
 
15522
15523
  /* FunctionImport */
15523
- #ifndef __PYX_HAVE_RT_ImportFunction_3_1_3
15524
- #define __PYX_HAVE_RT_ImportFunction_3_1_3
15525
- static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
15524
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_4
15525
+ #define __PYX_HAVE_RT_ImportFunction_3_1_4
15526
+ static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
15526
15527
  PyObject *d = 0;
15527
15528
  PyObject *cobj = 0;
15528
15529
  union {
@@ -15624,6 +15625,10 @@ bad:
15624
15625
  PyCode_NewWithPosOnlyArgs
15625
15626
  #endif
15626
15627
  (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
15628
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
15629
+ if (likely(result))
15630
+ result->_co_firsttraceable = 0;
15631
+ #endif
15627
15632
  return result;
15628
15633
  }
15629
15634
  #elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY