ez-a-sync 0.32.22__cp38-cp38-musllinux_1_2_i686.whl → 0.32.24__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.

Files changed (41) hide show
  1. a_sync/_smart.c +1266 -1194
  2. a_sync/_smart.cpython-38-i386-linux-gnu.so +0 -0
  3. a_sync/_smart.pyx +1 -0
  4. a_sync/a_sync/_descriptor.cpython-38-i386-linux-gnu.so +0 -0
  5. a_sync/a_sync/_flags.cpython-38-i386-linux-gnu.so +0 -0
  6. a_sync/a_sync/_helpers.cpython-38-i386-linux-gnu.so +0 -0
  7. a_sync/a_sync/_kwargs.cpython-38-i386-linux-gnu.so +0 -0
  8. a_sync/a_sync/abstract.cpython-38-i386-linux-gnu.so +0 -0
  9. a_sync/a_sync/base.cpython-38-i386-linux-gnu.so +0 -0
  10. a_sync/a_sync/flags.cpython-38-i386-linux-gnu.so +0 -0
  11. a_sync/a_sync/function.c +1964 -1962
  12. a_sync/a_sync/function.cpython-38-i386-linux-gnu.so +0 -0
  13. a_sync/a_sync/function.pyx +3 -1
  14. a_sync/a_sync/method.cpython-38-i386-linux-gnu.so +0 -0
  15. a_sync/a_sync/modifiers/manager.cpython-38-i386-linux-gnu.so +0 -0
  16. a_sync/a_sync/property.cpython-38-i386-linux-gnu.so +0 -0
  17. a_sync/async_property/cached.cpython-38-i386-linux-gnu.so +0 -0
  18. a_sync/async_property/proxy.cpython-38-i386-linux-gnu.so +0 -0
  19. a_sync/asyncio/as_completed.cpython-38-i386-linux-gnu.so +0 -0
  20. a_sync/asyncio/create_task.cpython-38-i386-linux-gnu.so +0 -0
  21. a_sync/asyncio/gather.cpython-38-i386-linux-gnu.so +0 -0
  22. a_sync/asyncio/igather.cpython-38-i386-linux-gnu.so +0 -0
  23. a_sync/asyncio/sleep.cpython-38-i386-linux-gnu.so +0 -0
  24. a_sync/debugging.cpython-38-i386-linux-gnu.so +0 -0
  25. a_sync/exceptions.c +480 -263
  26. a_sync/exceptions.cpython-38-i386-linux-gnu.so +0 -0
  27. a_sync/exceptions.pyx +3 -0
  28. a_sync/functools.cpython-38-i386-linux-gnu.so +0 -0
  29. a_sync/iter.cpython-38-i386-linux-gnu.so +0 -0
  30. a_sync/primitives/_debug.cpython-38-i386-linux-gnu.so +0 -0
  31. a_sync/primitives/_loggable.cpython-38-i386-linux-gnu.so +0 -0
  32. a_sync/primitives/locks/counter.cpython-38-i386-linux-gnu.so +0 -0
  33. a_sync/primitives/locks/event.cpython-38-i386-linux-gnu.so +0 -0
  34. a_sync/primitives/locks/prio_semaphore.cpython-38-i386-linux-gnu.so +0 -0
  35. a_sync/primitives/locks/semaphore.cpython-38-i386-linux-gnu.so +0 -0
  36. a_sync/utils/repr.cpython-38-i386-linux-gnu.so +0 -0
  37. {ez_a_sync-0.32.22.dist-info → ez_a_sync-0.32.24.dist-info}/METADATA +1 -1
  38. {ez_a_sync-0.32.22.dist-info → ez_a_sync-0.32.24.dist-info}/RECORD +41 -41
  39. {ez_a_sync-0.32.22.dist-info → ez_a_sync-0.32.24.dist-info}/LICENSE.txt +0 -0
  40. {ez_a_sync-0.32.22.dist-info → ez_a_sync-0.32.24.dist-info}/WHEEL +0 -0
  41. {ez_a_sync-0.32.22.dist-info → ez_a_sync-0.32.24.dist-info}/top_level.txt +0 -0
a_sync/exceptions.c CHANGED
@@ -2452,10 +2452,10 @@ static const char __pyx_k__9[] = "'";
2452
2452
  static const char __pyx_k_fn[] = "fn";
2453
2453
  static const char __pyx_k_Any[] = "Any";
2454
2454
  static const char __pyx_k__14[] = "";
2455
- static const char __pyx_k__17[] = ":\n";
2456
- static const char __pyx_k__19[] = ": ";
2457
- static const char __pyx_k__20[] = "*";
2458
- static const char __pyx_k__42[] = "?";
2455
+ static const char __pyx_k__18[] = ":\n";
2456
+ static const char __pyx_k__20[] = ": ";
2457
+ static const char __pyx_k__21[] = "*";
2458
+ static const char __pyx_k__44[] = "?";
2459
2459
  static const char __pyx_k_doc[] = "__doc__";
2460
2460
  static const char __pyx_k_err[] = "err";
2461
2461
  static const char __pyx_k_exc[] = "exc";
@@ -2482,6 +2482,7 @@ static const char __pyx_k_flag_2[] = " flag ";
2482
2482
  static const char __pyx_k_import[] = "__import__";
2483
2483
  static const char __pyx_k_kwargs[] = "kwargs";
2484
2484
  static const char __pyx_k_module[] = "__module__";
2485
+ static const char __pyx_k_reduce[] = "__reduce__";
2485
2486
  static const char __pyx_k_return[] = "return";
2486
2487
  static const char __pyx_k_target[] = "target";
2487
2488
  static const char __pyx_k_asyncio[] = "asyncio";
@@ -2576,6 +2577,7 @@ static const char __pyx_k_coro_fn_must_be_a_coroutine_fun[] = "`coro_fn` must be
2576
2577
  static const char __pyx_k_func_must_be_a_coroutine_functi[] = "`func` must be a coroutine function defined with `def`. You passed ";
2577
2578
  static const char __pyx_k_Check_your_traceback_to_determin[] = "Check your traceback to determine which, then try calling asynchronously instead with one of the following kwargs:\n";
2578
2579
  static const char __pyx_k_SyncModeInAsyncContextError___in[] = "SyncModeInAsyncContextError.__init__";
2580
+ static const char __pyx_k_SyncModeInAsyncContextError___re[] = "SyncModeInAsyncContextError.__reduce__";
2579
2581
  static const char __pyx_k_TaskMapping_already_contains_som[] = "TaskMapping already contains some data. In order to use `map`, you need a fresh one";
2580
2582
  static const char __pyx_k_TaskMapping_does_not_contain_any[] = "TaskMapping does not contain anything to yield";
2581
2583
  static const char __pyx_k_The_event_loop_is_already_runnin[] = "The event loop is already running, which means you're trying to use an `ASyncFunction` synchronously from within an async context.\n";
@@ -2592,6 +2594,7 @@ static PyObject *__pyx_pf_6a_sync_10exceptions_16FunctionNotAsync___init__(CYTHO
2592
2594
  static PyObject *__pyx_pf_6a_sync_10exceptions_15FunctionNotSync___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_fn); /* proto */
2593
2595
  static PyObject *__pyx_pf_6a_sync_10exceptions_17ASyncRuntimeError___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_e); /* proto */
2594
2596
  static PyObject *__pyx_pf_6a_sync_10exceptions_27SyncModeInAsyncContextError___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_err); /* proto */
2597
+ static PyObject *__pyx_pf_6a_sync_10exceptions_27SyncModeInAsyncContextError_2__reduce__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
2595
2598
  static PyObject *__pyx_pf_6a_sync_10exceptions_12MappingError___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_mapping, PyObject *__pyx_v_msg); /* proto */
2596
2599
  static PyObject *__pyx_pf_6a_sync_10exceptions_22PersistedTaskException___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_exc, PyObject *__pyx_v_task); /* proto */
2597
2600
  /* #### Code section: late_includes ### */
@@ -2677,6 +2680,7 @@ typedef struct {
2677
2680
  PyObject *__pyx_n_s_RuntimeError;
2678
2681
  PyObject *__pyx_n_s_SyncModeInAsyncContextError;
2679
2682
  PyObject *__pyx_n_s_SyncModeInAsyncContextError___in;
2683
+ PyObject *__pyx_n_s_SyncModeInAsyncContextError___re;
2680
2684
  PyObject *__pyx_n_s_TYPE_CHECKING;
2681
2685
  PyObject *__pyx_n_s_Task;
2682
2686
  PyObject *__pyx_n_s_TaskMapping;
@@ -2696,11 +2700,11 @@ typedef struct {
2696
2700
  PyObject *__pyx_kp_u_Viable_flags;
2697
2701
  PyObject *__pyx_kp_u_You_passed;
2698
2702
  PyObject *__pyx_kp_u__14;
2699
- PyObject *__pyx_kp_u__17;
2700
- PyObject *__pyx_kp_u__19;
2701
- PyObject *__pyx_n_s__20;
2703
+ PyObject *__pyx_kp_u__18;
2704
+ PyObject *__pyx_kp_u__20;
2705
+ PyObject *__pyx_n_s__21;
2702
2706
  PyObject *__pyx_kp_u__3;
2703
- PyObject *__pyx_n_s__42;
2707
+ PyObject *__pyx_n_s__44;
2704
2708
  PyObject *__pyx_kp_u__5;
2705
2709
  PyObject *__pyx_kp_u__7;
2706
2710
  PyObject *__pyx_kp_u__9;
@@ -2752,6 +2756,7 @@ typedef struct {
2752
2756
  PyObject *__pyx_n_s_prepare;
2753
2757
  PyObject *__pyx_n_s_present_flags;
2754
2758
  PyObject *__pyx_n_s_qualname;
2759
+ PyObject *__pyx_n_s_reduce;
2755
2760
  PyObject *__pyx_n_s_return;
2756
2761
  PyObject *__pyx_n_s_self;
2757
2762
  PyObject *__pyx_n_s_set_name;
@@ -2763,7 +2768,6 @@ typedef struct {
2763
2768
  PyObject *__pyx_n_s_test;
2764
2769
  PyObject *__pyx_n_s_viable_flags;
2765
2770
  PyObject *__pyx_codeobj_;
2766
- PyObject *__pyx_tuple__21;
2767
2771
  PyObject *__pyx_tuple__22;
2768
2772
  PyObject *__pyx_tuple__23;
2769
2773
  PyObject *__pyx_tuple__24;
@@ -2784,6 +2788,8 @@ typedef struct {
2784
2788
  PyObject *__pyx_tuple__39;
2785
2789
  PyObject *__pyx_tuple__40;
2786
2790
  PyObject *__pyx_tuple__41;
2791
+ PyObject *__pyx_tuple__42;
2792
+ PyObject *__pyx_tuple__43;
2787
2793
  PyObject *__pyx_codeobj__2;
2788
2794
  PyObject *__pyx_codeobj__4;
2789
2795
  PyObject *__pyx_codeobj__6;
@@ -2794,7 +2800,8 @@ typedef struct {
2794
2800
  PyObject *__pyx_codeobj__13;
2795
2801
  PyObject *__pyx_codeobj__15;
2796
2802
  PyObject *__pyx_codeobj__16;
2797
- PyObject *__pyx_codeobj__18;
2803
+ PyObject *__pyx_codeobj__17;
2804
+ PyObject *__pyx_codeobj__19;
2798
2805
  } __pyx_mstate;
2799
2806
 
2800
2807
  #if CYTHON_USE_MODULE_STATE
@@ -2889,6 +2896,7 @@ static int __pyx_m_clear(PyObject *m) {
2889
2896
  Py_CLEAR(clear_module_state->__pyx_n_s_RuntimeError);
2890
2897
  Py_CLEAR(clear_module_state->__pyx_n_s_SyncModeInAsyncContextError);
2891
2898
  Py_CLEAR(clear_module_state->__pyx_n_s_SyncModeInAsyncContextError___in);
2899
+ Py_CLEAR(clear_module_state->__pyx_n_s_SyncModeInAsyncContextError___re);
2892
2900
  Py_CLEAR(clear_module_state->__pyx_n_s_TYPE_CHECKING);
2893
2901
  Py_CLEAR(clear_module_state->__pyx_n_s_Task);
2894
2902
  Py_CLEAR(clear_module_state->__pyx_n_s_TaskMapping);
@@ -2908,11 +2916,11 @@ static int __pyx_m_clear(PyObject *m) {
2908
2916
  Py_CLEAR(clear_module_state->__pyx_kp_u_Viable_flags);
2909
2917
  Py_CLEAR(clear_module_state->__pyx_kp_u_You_passed);
2910
2918
  Py_CLEAR(clear_module_state->__pyx_kp_u__14);
2911
- Py_CLEAR(clear_module_state->__pyx_kp_u__17);
2912
- Py_CLEAR(clear_module_state->__pyx_kp_u__19);
2913
- Py_CLEAR(clear_module_state->__pyx_n_s__20);
2919
+ Py_CLEAR(clear_module_state->__pyx_kp_u__18);
2920
+ Py_CLEAR(clear_module_state->__pyx_kp_u__20);
2921
+ Py_CLEAR(clear_module_state->__pyx_n_s__21);
2914
2922
  Py_CLEAR(clear_module_state->__pyx_kp_u__3);
2915
- Py_CLEAR(clear_module_state->__pyx_n_s__42);
2923
+ Py_CLEAR(clear_module_state->__pyx_n_s__44);
2916
2924
  Py_CLEAR(clear_module_state->__pyx_kp_u__5);
2917
2925
  Py_CLEAR(clear_module_state->__pyx_kp_u__7);
2918
2926
  Py_CLEAR(clear_module_state->__pyx_kp_u__9);
@@ -2964,6 +2972,7 @@ static int __pyx_m_clear(PyObject *m) {
2964
2972
  Py_CLEAR(clear_module_state->__pyx_n_s_prepare);
2965
2973
  Py_CLEAR(clear_module_state->__pyx_n_s_present_flags);
2966
2974
  Py_CLEAR(clear_module_state->__pyx_n_s_qualname);
2975
+ Py_CLEAR(clear_module_state->__pyx_n_s_reduce);
2967
2976
  Py_CLEAR(clear_module_state->__pyx_n_s_return);
2968
2977
  Py_CLEAR(clear_module_state->__pyx_n_s_self);
2969
2978
  Py_CLEAR(clear_module_state->__pyx_n_s_set_name);
@@ -2975,7 +2984,6 @@ static int __pyx_m_clear(PyObject *m) {
2975
2984
  Py_CLEAR(clear_module_state->__pyx_n_s_test);
2976
2985
  Py_CLEAR(clear_module_state->__pyx_n_s_viable_flags);
2977
2986
  Py_CLEAR(clear_module_state->__pyx_codeobj_);
2978
- Py_CLEAR(clear_module_state->__pyx_tuple__21);
2979
2987
  Py_CLEAR(clear_module_state->__pyx_tuple__22);
2980
2988
  Py_CLEAR(clear_module_state->__pyx_tuple__23);
2981
2989
  Py_CLEAR(clear_module_state->__pyx_tuple__24);
@@ -2996,6 +3004,8 @@ static int __pyx_m_clear(PyObject *m) {
2996
3004
  Py_CLEAR(clear_module_state->__pyx_tuple__39);
2997
3005
  Py_CLEAR(clear_module_state->__pyx_tuple__40);
2998
3006
  Py_CLEAR(clear_module_state->__pyx_tuple__41);
3007
+ Py_CLEAR(clear_module_state->__pyx_tuple__42);
3008
+ Py_CLEAR(clear_module_state->__pyx_tuple__43);
2999
3009
  Py_CLEAR(clear_module_state->__pyx_codeobj__2);
3000
3010
  Py_CLEAR(clear_module_state->__pyx_codeobj__4);
3001
3011
  Py_CLEAR(clear_module_state->__pyx_codeobj__6);
@@ -3006,7 +3016,8 @@ static int __pyx_m_clear(PyObject *m) {
3006
3016
  Py_CLEAR(clear_module_state->__pyx_codeobj__13);
3007
3017
  Py_CLEAR(clear_module_state->__pyx_codeobj__15);
3008
3018
  Py_CLEAR(clear_module_state->__pyx_codeobj__16);
3009
- Py_CLEAR(clear_module_state->__pyx_codeobj__18);
3019
+ Py_CLEAR(clear_module_state->__pyx_codeobj__17);
3020
+ Py_CLEAR(clear_module_state->__pyx_codeobj__19);
3010
3021
  return 0;
3011
3022
  }
3012
3023
  #endif
@@ -3079,6 +3090,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3079
3090
  Py_VISIT(traverse_module_state->__pyx_n_s_RuntimeError);
3080
3091
  Py_VISIT(traverse_module_state->__pyx_n_s_SyncModeInAsyncContextError);
3081
3092
  Py_VISIT(traverse_module_state->__pyx_n_s_SyncModeInAsyncContextError___in);
3093
+ Py_VISIT(traverse_module_state->__pyx_n_s_SyncModeInAsyncContextError___re);
3082
3094
  Py_VISIT(traverse_module_state->__pyx_n_s_TYPE_CHECKING);
3083
3095
  Py_VISIT(traverse_module_state->__pyx_n_s_Task);
3084
3096
  Py_VISIT(traverse_module_state->__pyx_n_s_TaskMapping);
@@ -3098,11 +3110,11 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3098
3110
  Py_VISIT(traverse_module_state->__pyx_kp_u_Viable_flags);
3099
3111
  Py_VISIT(traverse_module_state->__pyx_kp_u_You_passed);
3100
3112
  Py_VISIT(traverse_module_state->__pyx_kp_u__14);
3101
- Py_VISIT(traverse_module_state->__pyx_kp_u__17);
3102
- Py_VISIT(traverse_module_state->__pyx_kp_u__19);
3103
- Py_VISIT(traverse_module_state->__pyx_n_s__20);
3113
+ Py_VISIT(traverse_module_state->__pyx_kp_u__18);
3114
+ Py_VISIT(traverse_module_state->__pyx_kp_u__20);
3115
+ Py_VISIT(traverse_module_state->__pyx_n_s__21);
3104
3116
  Py_VISIT(traverse_module_state->__pyx_kp_u__3);
3105
- Py_VISIT(traverse_module_state->__pyx_n_s__42);
3117
+ Py_VISIT(traverse_module_state->__pyx_n_s__44);
3106
3118
  Py_VISIT(traverse_module_state->__pyx_kp_u__5);
3107
3119
  Py_VISIT(traverse_module_state->__pyx_kp_u__7);
3108
3120
  Py_VISIT(traverse_module_state->__pyx_kp_u__9);
@@ -3154,6 +3166,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3154
3166
  Py_VISIT(traverse_module_state->__pyx_n_s_prepare);
3155
3167
  Py_VISIT(traverse_module_state->__pyx_n_s_present_flags);
3156
3168
  Py_VISIT(traverse_module_state->__pyx_n_s_qualname);
3169
+ Py_VISIT(traverse_module_state->__pyx_n_s_reduce);
3157
3170
  Py_VISIT(traverse_module_state->__pyx_n_s_return);
3158
3171
  Py_VISIT(traverse_module_state->__pyx_n_s_self);
3159
3172
  Py_VISIT(traverse_module_state->__pyx_n_s_set_name);
@@ -3165,7 +3178,6 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3165
3178
  Py_VISIT(traverse_module_state->__pyx_n_s_test);
3166
3179
  Py_VISIT(traverse_module_state->__pyx_n_s_viable_flags);
3167
3180
  Py_VISIT(traverse_module_state->__pyx_codeobj_);
3168
- Py_VISIT(traverse_module_state->__pyx_tuple__21);
3169
3181
  Py_VISIT(traverse_module_state->__pyx_tuple__22);
3170
3182
  Py_VISIT(traverse_module_state->__pyx_tuple__23);
3171
3183
  Py_VISIT(traverse_module_state->__pyx_tuple__24);
@@ -3186,6 +3198,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3186
3198
  Py_VISIT(traverse_module_state->__pyx_tuple__39);
3187
3199
  Py_VISIT(traverse_module_state->__pyx_tuple__40);
3188
3200
  Py_VISIT(traverse_module_state->__pyx_tuple__41);
3201
+ Py_VISIT(traverse_module_state->__pyx_tuple__42);
3202
+ Py_VISIT(traverse_module_state->__pyx_tuple__43);
3189
3203
  Py_VISIT(traverse_module_state->__pyx_codeobj__2);
3190
3204
  Py_VISIT(traverse_module_state->__pyx_codeobj__4);
3191
3205
  Py_VISIT(traverse_module_state->__pyx_codeobj__6);
@@ -3196,7 +3210,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3196
3210
  Py_VISIT(traverse_module_state->__pyx_codeobj__13);
3197
3211
  Py_VISIT(traverse_module_state->__pyx_codeobj__15);
3198
3212
  Py_VISIT(traverse_module_state->__pyx_codeobj__16);
3199
- Py_VISIT(traverse_module_state->__pyx_codeobj__18);
3213
+ Py_VISIT(traverse_module_state->__pyx_codeobj__17);
3214
+ Py_VISIT(traverse_module_state->__pyx_codeobj__19);
3200
3215
  return 0;
3201
3216
  }
3202
3217
  #endif
@@ -3281,6 +3296,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3281
3296
  #define __pyx_n_s_RuntimeError __pyx_mstate_global->__pyx_n_s_RuntimeError
3282
3297
  #define __pyx_n_s_SyncModeInAsyncContextError __pyx_mstate_global->__pyx_n_s_SyncModeInAsyncContextError
3283
3298
  #define __pyx_n_s_SyncModeInAsyncContextError___in __pyx_mstate_global->__pyx_n_s_SyncModeInAsyncContextError___in
3299
+ #define __pyx_n_s_SyncModeInAsyncContextError___re __pyx_mstate_global->__pyx_n_s_SyncModeInAsyncContextError___re
3284
3300
  #define __pyx_n_s_TYPE_CHECKING __pyx_mstate_global->__pyx_n_s_TYPE_CHECKING
3285
3301
  #define __pyx_n_s_Task __pyx_mstate_global->__pyx_n_s_Task
3286
3302
  #define __pyx_n_s_TaskMapping __pyx_mstate_global->__pyx_n_s_TaskMapping
@@ -3300,11 +3316,11 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3300
3316
  #define __pyx_kp_u_Viable_flags __pyx_mstate_global->__pyx_kp_u_Viable_flags
3301
3317
  #define __pyx_kp_u_You_passed __pyx_mstate_global->__pyx_kp_u_You_passed
3302
3318
  #define __pyx_kp_u__14 __pyx_mstate_global->__pyx_kp_u__14
3303
- #define __pyx_kp_u__17 __pyx_mstate_global->__pyx_kp_u__17
3304
- #define __pyx_kp_u__19 __pyx_mstate_global->__pyx_kp_u__19
3305
- #define __pyx_n_s__20 __pyx_mstate_global->__pyx_n_s__20
3319
+ #define __pyx_kp_u__18 __pyx_mstate_global->__pyx_kp_u__18
3320
+ #define __pyx_kp_u__20 __pyx_mstate_global->__pyx_kp_u__20
3321
+ #define __pyx_n_s__21 __pyx_mstate_global->__pyx_n_s__21
3306
3322
  #define __pyx_kp_u__3 __pyx_mstate_global->__pyx_kp_u__3
3307
- #define __pyx_n_s__42 __pyx_mstate_global->__pyx_n_s__42
3323
+ #define __pyx_n_s__44 __pyx_mstate_global->__pyx_n_s__44
3308
3324
  #define __pyx_kp_u__5 __pyx_mstate_global->__pyx_kp_u__5
3309
3325
  #define __pyx_kp_u__7 __pyx_mstate_global->__pyx_kp_u__7
3310
3326
  #define __pyx_kp_u__9 __pyx_mstate_global->__pyx_kp_u__9
@@ -3356,6 +3372,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3356
3372
  #define __pyx_n_s_prepare __pyx_mstate_global->__pyx_n_s_prepare
3357
3373
  #define __pyx_n_s_present_flags __pyx_mstate_global->__pyx_n_s_present_flags
3358
3374
  #define __pyx_n_s_qualname __pyx_mstate_global->__pyx_n_s_qualname
3375
+ #define __pyx_n_s_reduce __pyx_mstate_global->__pyx_n_s_reduce
3359
3376
  #define __pyx_n_s_return __pyx_mstate_global->__pyx_n_s_return
3360
3377
  #define __pyx_n_s_self __pyx_mstate_global->__pyx_n_s_self
3361
3378
  #define __pyx_n_s_set_name __pyx_mstate_global->__pyx_n_s_set_name
@@ -3367,7 +3384,6 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3367
3384
  #define __pyx_n_s_test __pyx_mstate_global->__pyx_n_s_test
3368
3385
  #define __pyx_n_s_viable_flags __pyx_mstate_global->__pyx_n_s_viable_flags
3369
3386
  #define __pyx_codeobj_ __pyx_mstate_global->__pyx_codeobj_
3370
- #define __pyx_tuple__21 __pyx_mstate_global->__pyx_tuple__21
3371
3387
  #define __pyx_tuple__22 __pyx_mstate_global->__pyx_tuple__22
3372
3388
  #define __pyx_tuple__23 __pyx_mstate_global->__pyx_tuple__23
3373
3389
  #define __pyx_tuple__24 __pyx_mstate_global->__pyx_tuple__24
@@ -3388,6 +3404,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3388
3404
  #define __pyx_tuple__39 __pyx_mstate_global->__pyx_tuple__39
3389
3405
  #define __pyx_tuple__40 __pyx_mstate_global->__pyx_tuple__40
3390
3406
  #define __pyx_tuple__41 __pyx_mstate_global->__pyx_tuple__41
3407
+ #define __pyx_tuple__42 __pyx_mstate_global->__pyx_tuple__42
3408
+ #define __pyx_tuple__43 __pyx_mstate_global->__pyx_tuple__43
3391
3409
  #define __pyx_codeobj__2 __pyx_mstate_global->__pyx_codeobj__2
3392
3410
  #define __pyx_codeobj__4 __pyx_mstate_global->__pyx_codeobj__4
3393
3411
  #define __pyx_codeobj__6 __pyx_mstate_global->__pyx_codeobj__6
@@ -3398,7 +3416,8 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
3398
3416
  #define __pyx_codeobj__13 __pyx_mstate_global->__pyx_codeobj__13
3399
3417
  #define __pyx_codeobj__15 __pyx_mstate_global->__pyx_codeobj__15
3400
3418
  #define __pyx_codeobj__16 __pyx_mstate_global->__pyx_codeobj__16
3401
- #define __pyx_codeobj__18 __pyx_mstate_global->__pyx_codeobj__18
3419
+ #define __pyx_codeobj__17 __pyx_mstate_global->__pyx_codeobj__17
3420
+ #define __pyx_codeobj__19 __pyx_mstate_global->__pyx_codeobj__19
3402
3421
  /* #### Code section: module_code ### */
3403
3422
 
3404
3423
  /* "a_sync/exceptions.pyx":35
@@ -5895,7 +5914,7 @@ static PyObject *__pyx_pf_6a_sync_10exceptions_27SyncModeInAsyncContextError___i
5895
5914
  * err += f"{VIABLE_FLAGS}"
5896
5915
  * BaseException.__init__(self, err) # <<<<<<<<<<<<<<
5897
5916
  *
5898
- *
5917
+ * def __reduce__(self):
5899
5918
  */
5900
5919
  __Pyx_TraceLine(324,0,__PYX_ERR(0, 324, __pyx_L1_error))
5901
5920
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_builtin_BaseException, __pyx_n_s_init); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 324, __pyx_L1_error)
@@ -5949,7 +5968,178 @@ static PyObject *__pyx_pf_6a_sync_10exceptions_27SyncModeInAsyncContextError___i
5949
5968
  return __pyx_r;
5950
5969
  }
5951
5970
 
5952
- /* "a_sync/exceptions.pyx":344
5971
+ /* "a_sync/exceptions.pyx":326
5972
+ * BaseException.__init__(self, err)
5973
+ *
5974
+ * def __reduce__(self): # <<<<<<<<<<<<<<
5975
+ * return (self.__class__, (str(self),))
5976
+ *
5977
+ */
5978
+
5979
+ /* Python wrapper */
5980
+ static PyObject *__pyx_pw_6a_sync_10exceptions_27SyncModeInAsyncContextError_3__reduce__(PyObject *__pyx_self,
5981
+ #if CYTHON_METH_FASTCALL
5982
+ PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
5983
+ #else
5984
+ PyObject *__pyx_args, PyObject *__pyx_kwds
5985
+ #endif
5986
+ ); /*proto*/
5987
+ PyDoc_STRVAR(__pyx_doc_6a_sync_10exceptions_27SyncModeInAsyncContextError_2__reduce__, "SyncModeInAsyncContextError.__reduce__(self)");
5988
+ static PyMethodDef __pyx_mdef_6a_sync_10exceptions_27SyncModeInAsyncContextError_3__reduce__ = {"__reduce__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6a_sync_10exceptions_27SyncModeInAsyncContextError_3__reduce__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6a_sync_10exceptions_27SyncModeInAsyncContextError_2__reduce__};
5989
+ static PyObject *__pyx_pw_6a_sync_10exceptions_27SyncModeInAsyncContextError_3__reduce__(PyObject *__pyx_self,
5990
+ #if CYTHON_METH_FASTCALL
5991
+ PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
5992
+ #else
5993
+ PyObject *__pyx_args, PyObject *__pyx_kwds
5994
+ #endif
5995
+ ) {
5996
+ PyObject *__pyx_v_self = 0;
5997
+ #if !CYTHON_METH_FASTCALL
5998
+ CYTHON_UNUSED Py_ssize_t __pyx_nargs;
5999
+ #endif
6000
+ CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
6001
+ PyObject* values[1] = {0};
6002
+ int __pyx_lineno = 0;
6003
+ const char *__pyx_filename = NULL;
6004
+ int __pyx_clineno = 0;
6005
+ PyObject *__pyx_r = 0;
6006
+ __Pyx_RefNannyDeclarations
6007
+ __Pyx_RefNannySetupContext("__reduce__ (wrapper)", 0);
6008
+ #if !CYTHON_METH_FASTCALL
6009
+ #if CYTHON_ASSUME_SAFE_MACROS
6010
+ __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
6011
+ #else
6012
+ __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
6013
+ #endif
6014
+ #endif
6015
+ __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
6016
+ {
6017
+ PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,0};
6018
+ if (__pyx_kwds) {
6019
+ Py_ssize_t kw_args;
6020
+ switch (__pyx_nargs) {
6021
+ case 1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
6022
+ CYTHON_FALLTHROUGH;
6023
+ case 0: break;
6024
+ default: goto __pyx_L5_argtuple_error;
6025
+ }
6026
+ kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
6027
+ switch (__pyx_nargs) {
6028
+ case 0:
6029
+ if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_self)) != 0)) {
6030
+ (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
6031
+ kw_args--;
6032
+ }
6033
+ else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 326, __pyx_L3_error)
6034
+ else goto __pyx_L5_argtuple_error;
6035
+ }
6036
+ if (unlikely(kw_args > 0)) {
6037
+ const Py_ssize_t kwd_pos_args = __pyx_nargs;
6038
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__reduce__") < 0)) __PYX_ERR(0, 326, __pyx_L3_error)
6039
+ }
6040
+ } else if (unlikely(__pyx_nargs != 1)) {
6041
+ goto __pyx_L5_argtuple_error;
6042
+ } else {
6043
+ values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
6044
+ }
6045
+ __pyx_v_self = values[0];
6046
+ }
6047
+ goto __pyx_L6_skip;
6048
+ __pyx_L5_argtuple_error:;
6049
+ __Pyx_RaiseArgtupleInvalid("__reduce__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 326, __pyx_L3_error)
6050
+ __pyx_L6_skip:;
6051
+ goto __pyx_L4_argument_unpacking_done;
6052
+ __pyx_L3_error:;
6053
+ {
6054
+ Py_ssize_t __pyx_temp;
6055
+ for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
6056
+ __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
6057
+ }
6058
+ }
6059
+ __Pyx_AddTraceback("a_sync.exceptions.SyncModeInAsyncContextError.__reduce__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6060
+ __Pyx_RefNannyFinishContext();
6061
+ return NULL;
6062
+ __pyx_L4_argument_unpacking_done:;
6063
+ __pyx_r = __pyx_pf_6a_sync_10exceptions_27SyncModeInAsyncContextError_2__reduce__(__pyx_self, __pyx_v_self);
6064
+
6065
+ /* function exit code */
6066
+ {
6067
+ Py_ssize_t __pyx_temp;
6068
+ for (__pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
6069
+ __Pyx_Arg_XDECREF_FASTCALL(values[__pyx_temp]);
6070
+ }
6071
+ }
6072
+ __Pyx_RefNannyFinishContext();
6073
+ return __pyx_r;
6074
+ }
6075
+
6076
+ static PyObject *__pyx_pf_6a_sync_10exceptions_27SyncModeInAsyncContextError_2__reduce__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
6077
+ PyObject *__pyx_r = NULL;
6078
+ __Pyx_TraceDeclarations
6079
+ __Pyx_RefNannyDeclarations
6080
+ PyObject *__pyx_t_1 = NULL;
6081
+ PyObject *__pyx_t_2 = NULL;
6082
+ PyObject *__pyx_t_3 = NULL;
6083
+ int __pyx_lineno = 0;
6084
+ const char *__pyx_filename = NULL;
6085
+ int __pyx_clineno = 0;
6086
+ __Pyx_TraceFrameInit(__pyx_codeobj__16)
6087
+ __Pyx_RefNannySetupContext("__reduce__", 1);
6088
+ __Pyx_TraceCall("__reduce__", __pyx_f[0], 326, 0, __PYX_ERR(0, 326, __pyx_L1_error));
6089
+
6090
+ /* "a_sync/exceptions.pyx":327
6091
+ *
6092
+ * def __reduce__(self):
6093
+ * return (self.__class__, (str(self),)) # <<<<<<<<<<<<<<
6094
+ *
6095
+ *
6096
+ */
6097
+ __Pyx_TraceLine(327,0,__PYX_ERR(0, 327, __pyx_L1_error))
6098
+ __Pyx_XDECREF(__pyx_r);
6099
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 327, __pyx_L1_error)
6100
+ __Pyx_GOTREF(__pyx_t_1);
6101
+ __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 327, __pyx_L1_error)
6102
+ __Pyx_GOTREF(__pyx_t_2);
6103
+ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 327, __pyx_L1_error)
6104
+ __Pyx_GOTREF(__pyx_t_3);
6105
+ __Pyx_GIVEREF(__pyx_t_2);
6106
+ if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)) __PYX_ERR(0, 327, __pyx_L1_error);
6107
+ __pyx_t_2 = 0;
6108
+ __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 327, __pyx_L1_error)
6109
+ __Pyx_GOTREF(__pyx_t_2);
6110
+ __Pyx_GIVEREF(__pyx_t_1);
6111
+ if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(0, 327, __pyx_L1_error);
6112
+ __Pyx_GIVEREF(__pyx_t_3);
6113
+ if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3)) __PYX_ERR(0, 327, __pyx_L1_error);
6114
+ __pyx_t_1 = 0;
6115
+ __pyx_t_3 = 0;
6116
+ __pyx_r = __pyx_t_2;
6117
+ __pyx_t_2 = 0;
6118
+ goto __pyx_L0;
6119
+
6120
+ /* "a_sync/exceptions.pyx":326
6121
+ * BaseException.__init__(self, err)
6122
+ *
6123
+ * def __reduce__(self): # <<<<<<<<<<<<<<
6124
+ * return (self.__class__, (str(self),))
6125
+ *
6126
+ */
6127
+
6128
+ /* function exit code */
6129
+ __pyx_L1_error:;
6130
+ __Pyx_XDECREF(__pyx_t_1);
6131
+ __Pyx_XDECREF(__pyx_t_2);
6132
+ __Pyx_XDECREF(__pyx_t_3);
6133
+ __Pyx_AddTraceback("a_sync.exceptions.SyncModeInAsyncContextError.__reduce__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6134
+ __pyx_r = NULL;
6135
+ __pyx_L0:;
6136
+ __Pyx_XGIVEREF(__pyx_r);
6137
+ __Pyx_TraceReturn(__pyx_r, 0);
6138
+ __Pyx_RefNannyFinishContext();
6139
+ return __pyx_r;
6140
+ }
6141
+
6142
+ /* "a_sync/exceptions.pyx":347
5953
6143
  * _msg: str
5954
6144
  *
5955
6145
  * def __init__(self, mapping: "TaskMapping", msg: str = ""): # <<<<<<<<<<<<<<
@@ -6018,7 +6208,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
6018
6208
  (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
6019
6209
  kw_args--;
6020
6210
  }
6021
- else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 344, __pyx_L3_error)
6211
+ else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 347, __pyx_L3_error)
6022
6212
  else goto __pyx_L5_argtuple_error;
6023
6213
  CYTHON_FALLTHROUGH;
6024
6214
  case 1:
@@ -6026,21 +6216,21 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
6026
6216
  (void)__Pyx_Arg_NewRef_FASTCALL(values[1]);
6027
6217
  kw_args--;
6028
6218
  }
6029
- else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 344, __pyx_L3_error)
6219
+ else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 347, __pyx_L3_error)
6030
6220
  else {
6031
- __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, 1); __PYX_ERR(0, 344, __pyx_L3_error)
6221
+ __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, 1); __PYX_ERR(0, 347, __pyx_L3_error)
6032
6222
  }
6033
6223
  CYTHON_FALLTHROUGH;
6034
6224
  case 2:
6035
6225
  if (kw_args > 0) {
6036
6226
  PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_msg);
6037
6227
  if (value) { values[2] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
6038
- else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 344, __pyx_L3_error)
6228
+ else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 347, __pyx_L3_error)
6039
6229
  }
6040
6230
  }
6041
6231
  if (unlikely(kw_args > 0)) {
6042
6232
  const Py_ssize_t kwd_pos_args = __pyx_nargs;
6043
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 344, __pyx_L3_error)
6233
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 347, __pyx_L3_error)
6044
6234
  }
6045
6235
  } else {
6046
6236
  switch (__pyx_nargs) {
@@ -6058,7 +6248,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
6058
6248
  }
6059
6249
  goto __pyx_L6_skip;
6060
6250
  __pyx_L5_argtuple_error:;
6061
- __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, __pyx_nargs); __PYX_ERR(0, 344, __pyx_L3_error)
6251
+ __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, __pyx_nargs); __PYX_ERR(0, 347, __pyx_L3_error)
6062
6252
  __pyx_L6_skip:;
6063
6253
  goto __pyx_L4_argument_unpacking_done;
6064
6254
  __pyx_L3_error:;
@@ -6072,7 +6262,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
6072
6262
  __Pyx_RefNannyFinishContext();
6073
6263
  return NULL;
6074
6264
  __pyx_L4_argument_unpacking_done:;
6075
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_msg), (&PyUnicode_Type), 0, "msg", 1))) __PYX_ERR(0, 344, __pyx_L1_error)
6265
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_msg), (&PyUnicode_Type), 0, "msg", 1))) __PYX_ERR(0, 347, __pyx_L1_error)
6076
6266
  __pyx_r = __pyx_pf_6a_sync_10exceptions_12MappingError___init__(__pyx_self, __pyx_v_self, __pyx_v_mapping, __pyx_v_msg);
6077
6267
 
6078
6268
  /* function exit code */
@@ -6102,79 +6292,79 @@ static PyObject *__pyx_pf_6a_sync_10exceptions_12MappingError___init__(CYTHON_UN
6102
6292
  int __pyx_lineno = 0;
6103
6293
  const char *__pyx_filename = NULL;
6104
6294
  int __pyx_clineno = 0;
6105
- __Pyx_TraceFrameInit(__pyx_codeobj__16)
6295
+ __Pyx_TraceFrameInit(__pyx_codeobj__17)
6106
6296
  __Pyx_RefNannySetupContext("__init__", 0);
6107
- __Pyx_TraceCall("__init__", __pyx_f[0], 344, 0, __PYX_ERR(0, 344, __pyx_L1_error));
6297
+ __Pyx_TraceCall("__init__", __pyx_f[0], 347, 0, __PYX_ERR(0, 347, __pyx_L1_error));
6108
6298
  __Pyx_INCREF(__pyx_v_msg);
6109
6299
 
6110
- /* "a_sync/exceptions.pyx":355
6300
+ /* "a_sync/exceptions.pyx":358
6111
6301
  * - :class:`TaskMapping`
6112
6302
  * """
6113
6303
  * msg = (msg or self._msg) + f":\n{mapping}" # <<<<<<<<<<<<<<
6114
6304
  * if mapping:
6115
6305
  * msg += f"\n{dict(mapping)}"
6116
6306
  */
6117
- __Pyx_TraceLine(355,0,__PYX_ERR(0, 355, __pyx_L1_error))
6118
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_msg); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 355, __pyx_L1_error)
6307
+ __Pyx_TraceLine(358,0,__PYX_ERR(0, 358, __pyx_L1_error))
6308
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_msg); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 358, __pyx_L1_error)
6119
6309
  if (!__pyx_t_2) {
6120
6310
  } else {
6121
6311
  __Pyx_INCREF(__pyx_v_msg);
6122
6312
  __pyx_t_1 = __pyx_v_msg;
6123
6313
  goto __pyx_L3_bool_binop_done;
6124
6314
  }
6125
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_msg_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 355, __pyx_L1_error)
6315
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_msg_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 358, __pyx_L1_error)
6126
6316
  __Pyx_GOTREF(__pyx_t_3);
6127
6317
  __Pyx_INCREF(__pyx_t_3);
6128
6318
  __pyx_t_1 = __pyx_t_3;
6129
6319
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6130
6320
  __pyx_L3_bool_binop_done:;
6131
- __pyx_t_3 = __Pyx_PyObject_FormatSimple(__pyx_v_mapping, __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 355, __pyx_L1_error)
6321
+ __pyx_t_3 = __Pyx_PyObject_FormatSimple(__pyx_v_mapping, __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 358, __pyx_L1_error)
6132
6322
  __Pyx_GOTREF(__pyx_t_3);
6133
- __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u__17, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 355, __pyx_L1_error)
6323
+ __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u__18, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 358, __pyx_L1_error)
6134
6324
  __Pyx_GOTREF(__pyx_t_4);
6135
6325
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6136
- __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 355, __pyx_L1_error)
6326
+ __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 358, __pyx_L1_error)
6137
6327
  __Pyx_GOTREF(__pyx_t_3);
6138
6328
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6139
6329
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
6140
- if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_3))) __PYX_ERR(0, 355, __pyx_L1_error)
6330
+ if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_3))) __PYX_ERR(0, 358, __pyx_L1_error)
6141
6331
  __Pyx_DECREF_SET(__pyx_v_msg, ((PyObject*)__pyx_t_3));
6142
6332
  __pyx_t_3 = 0;
6143
6333
 
6144
- /* "a_sync/exceptions.pyx":356
6334
+ /* "a_sync/exceptions.pyx":359
6145
6335
  * """
6146
6336
  * msg = (msg or self._msg) + f":\n{mapping}"
6147
6337
  * if mapping: # <<<<<<<<<<<<<<
6148
6338
  * msg += f"\n{dict(mapping)}"
6149
6339
  * BaseException.__init__(self, msg)
6150
6340
  */
6151
- __Pyx_TraceLine(356,0,__PYX_ERR(0, 356, __pyx_L1_error))
6152
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_mapping); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 356, __pyx_L1_error)
6341
+ __Pyx_TraceLine(359,0,__PYX_ERR(0, 359, __pyx_L1_error))
6342
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_mapping); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 359, __pyx_L1_error)
6153
6343
  if (__pyx_t_2) {
6154
6344
 
6155
- /* "a_sync/exceptions.pyx":357
6345
+ /* "a_sync/exceptions.pyx":360
6156
6346
  * msg = (msg or self._msg) + f":\n{mapping}"
6157
6347
  * if mapping:
6158
6348
  * msg += f"\n{dict(mapping)}" # <<<<<<<<<<<<<<
6159
6349
  * BaseException.__init__(self, msg)
6160
6350
  * self.mapping = mapping
6161
6351
  */
6162
- __Pyx_TraceLine(357,0,__PYX_ERR(0, 357, __pyx_L1_error))
6163
- __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_v_mapping); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 357, __pyx_L1_error)
6352
+ __Pyx_TraceLine(360,0,__PYX_ERR(0, 360, __pyx_L1_error))
6353
+ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_v_mapping); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 360, __pyx_L1_error)
6164
6354
  __Pyx_GOTREF(__pyx_t_3);
6165
- __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_3, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 357, __pyx_L1_error)
6355
+ __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_3, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 360, __pyx_L1_error)
6166
6356
  __Pyx_GOTREF(__pyx_t_4);
6167
6357
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6168
- __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u__5, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 357, __pyx_L1_error)
6358
+ __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u__5, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 360, __pyx_L1_error)
6169
6359
  __Pyx_GOTREF(__pyx_t_3);
6170
6360
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
6171
- __pyx_t_4 = __Pyx_PyUnicode_ConcatInPlaceSafe(__pyx_v_msg, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 357, __pyx_L1_error)
6361
+ __pyx_t_4 = __Pyx_PyUnicode_ConcatInPlaceSafe(__pyx_v_msg, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 360, __pyx_L1_error)
6172
6362
  __Pyx_GOTREF(__pyx_t_4);
6173
6363
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6174
6364
  __Pyx_DECREF_SET(__pyx_v_msg, ((PyObject*)__pyx_t_4));
6175
6365
  __pyx_t_4 = 0;
6176
6366
 
6177
- /* "a_sync/exceptions.pyx":356
6367
+ /* "a_sync/exceptions.pyx":359
6178
6368
  * """
6179
6369
  * msg = (msg or self._msg) + f":\n{mapping}"
6180
6370
  * if mapping: # <<<<<<<<<<<<<<
@@ -6183,15 +6373,15 @@ static PyObject *__pyx_pf_6a_sync_10exceptions_12MappingError___init__(CYTHON_UN
6183
6373
  */
6184
6374
  }
6185
6375
 
6186
- /* "a_sync/exceptions.pyx":358
6376
+ /* "a_sync/exceptions.pyx":361
6187
6377
  * if mapping:
6188
6378
  * msg += f"\n{dict(mapping)}"
6189
6379
  * BaseException.__init__(self, msg) # <<<<<<<<<<<<<<
6190
6380
  * self.mapping = mapping
6191
6381
  *
6192
6382
  */
6193
- __Pyx_TraceLine(358,0,__PYX_ERR(0, 358, __pyx_L1_error))
6194
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_builtin_BaseException, __pyx_n_s_init); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 358, __pyx_L1_error)
6383
+ __Pyx_TraceLine(361,0,__PYX_ERR(0, 361, __pyx_L1_error))
6384
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_builtin_BaseException, __pyx_n_s_init); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 361, __pyx_L1_error)
6195
6385
  __Pyx_GOTREF(__pyx_t_3);
6196
6386
  __pyx_t_1 = NULL;
6197
6387
  __pyx_t_5 = 0;
@@ -6211,23 +6401,23 @@ static PyObject *__pyx_pf_6a_sync_10exceptions_12MappingError___init__(CYTHON_UN
6211
6401
  PyObject *__pyx_callargs[3] = {__pyx_t_1, __pyx_v_self, __pyx_v_msg};
6212
6402
  __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
6213
6403
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
6214
- if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 358, __pyx_L1_error)
6404
+ if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 361, __pyx_L1_error)
6215
6405
  __Pyx_GOTREF(__pyx_t_4);
6216
6406
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6217
6407
  }
6218
6408
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
6219
6409
 
6220
- /* "a_sync/exceptions.pyx":359
6410
+ /* "a_sync/exceptions.pyx":362
6221
6411
  * msg += f"\n{dict(mapping)}"
6222
6412
  * BaseException.__init__(self, msg)
6223
6413
  * self.mapping = mapping # <<<<<<<<<<<<<<
6224
6414
  *
6225
6415
  *
6226
6416
  */
6227
- __Pyx_TraceLine(359,0,__PYX_ERR(0, 359, __pyx_L1_error))
6228
- if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_mapping, __pyx_v_mapping) < 0) __PYX_ERR(0, 359, __pyx_L1_error)
6417
+ __Pyx_TraceLine(362,0,__PYX_ERR(0, 362, __pyx_L1_error))
6418
+ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_mapping, __pyx_v_mapping) < 0) __PYX_ERR(0, 362, __pyx_L1_error)
6229
6419
 
6230
- /* "a_sync/exceptions.pyx":344
6420
+ /* "a_sync/exceptions.pyx":347
6231
6421
  * _msg: str
6232
6422
  *
6233
6423
  * def __init__(self, mapping: "TaskMapping", msg: str = ""): # <<<<<<<<<<<<<<
@@ -6252,7 +6442,7 @@ static PyObject *__pyx_pf_6a_sync_10exceptions_12MappingError___init__(CYTHON_UN
6252
6442
  return __pyx_r;
6253
6443
  }
6254
6444
 
6255
- /* "a_sync/exceptions.pyx":417
6445
+ /* "a_sync/exceptions.pyx":420
6256
6446
  * """
6257
6447
  *
6258
6448
  * def __init__(self, exc: E, task: Task) -> None: # <<<<<<<<<<<<<<
@@ -6320,7 +6510,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
6320
6510
  (void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
6321
6511
  kw_args--;
6322
6512
  }
6323
- else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 417, __pyx_L3_error)
6513
+ else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 420, __pyx_L3_error)
6324
6514
  else goto __pyx_L5_argtuple_error;
6325
6515
  CYTHON_FALLTHROUGH;
6326
6516
  case 1:
@@ -6328,9 +6518,9 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
6328
6518
  (void)__Pyx_Arg_NewRef_FASTCALL(values[1]);
6329
6519
  kw_args--;
6330
6520
  }
6331
- else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 417, __pyx_L3_error)
6521
+ else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 420, __pyx_L3_error)
6332
6522
  else {
6333
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 1); __PYX_ERR(0, 417, __pyx_L3_error)
6523
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 1); __PYX_ERR(0, 420, __pyx_L3_error)
6334
6524
  }
6335
6525
  CYTHON_FALLTHROUGH;
6336
6526
  case 2:
@@ -6338,14 +6528,14 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
6338
6528
  (void)__Pyx_Arg_NewRef_FASTCALL(values[2]);
6339
6529
  kw_args--;
6340
6530
  }
6341
- else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 417, __pyx_L3_error)
6531
+ else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 420, __pyx_L3_error)
6342
6532
  else {
6343
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 2); __PYX_ERR(0, 417, __pyx_L3_error)
6533
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, 2); __PYX_ERR(0, 420, __pyx_L3_error)
6344
6534
  }
6345
6535
  }
6346
6536
  if (unlikely(kw_args > 0)) {
6347
6537
  const Py_ssize_t kwd_pos_args = __pyx_nargs;
6348
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 417, __pyx_L3_error)
6538
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 420, __pyx_L3_error)
6349
6539
  }
6350
6540
  } else if (unlikely(__pyx_nargs != 3)) {
6351
6541
  goto __pyx_L5_argtuple_error;
@@ -6360,7 +6550,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
6360
6550
  }
6361
6551
  goto __pyx_L6_skip;
6362
6552
  __pyx_L5_argtuple_error:;
6363
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 417, __pyx_L3_error)
6553
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 420, __pyx_L3_error)
6364
6554
  __pyx_L6_skip:;
6365
6555
  goto __pyx_L4_argument_unpacking_done;
6366
6556
  __pyx_L3_error:;
@@ -6402,30 +6592,30 @@ static PyObject *__pyx_pf_6a_sync_10exceptions_22PersistedTaskException___init__
6402
6592
  int __pyx_lineno = 0;
6403
6593
  const char *__pyx_filename = NULL;
6404
6594
  int __pyx_clineno = 0;
6405
- __Pyx_TraceFrameInit(__pyx_codeobj__18)
6595
+ __Pyx_TraceFrameInit(__pyx_codeobj__19)
6406
6596
  __Pyx_RefNannySetupContext("__init__", 1);
6407
- __Pyx_TraceCall("__init__", __pyx_f[0], 417, 0, __PYX_ERR(0, 417, __pyx_L1_error));
6597
+ __Pyx_TraceCall("__init__", __pyx_f[0], 420, 0, __PYX_ERR(0, 420, __pyx_L1_error));
6408
6598
 
6409
- /* "a_sync/exceptions.pyx":428
6599
+ /* "a_sync/exceptions.pyx":431
6410
6600
  * - :class:`asyncio.Task`
6411
6601
  * """
6412
6602
  * BaseException.__init__(self, f"{exc.__class__.__name__}: {exc}", task) # <<<<<<<<<<<<<<
6413
6603
  * self.exception = exc
6414
6604
  * self.task = task
6415
6605
  */
6416
- __Pyx_TraceLine(428,0,__PYX_ERR(0, 428, __pyx_L1_error))
6417
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_builtin_BaseException, __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 428, __pyx_L1_error)
6606
+ __Pyx_TraceLine(431,0,__PYX_ERR(0, 431, __pyx_L1_error))
6607
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_builtin_BaseException, __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 431, __pyx_L1_error)
6418
6608
  __Pyx_GOTREF(__pyx_t_2);
6419
- __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 428, __pyx_L1_error)
6609
+ __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 431, __pyx_L1_error)
6420
6610
  __Pyx_GOTREF(__pyx_t_3);
6421
6611
  __pyx_t_4 = 0;
6422
6612
  __pyx_t_5 = 127;
6423
- __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_exc, __pyx_n_s_class); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 428, __pyx_L1_error)
6613
+ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_exc, __pyx_n_s_class); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 431, __pyx_L1_error)
6424
6614
  __Pyx_GOTREF(__pyx_t_6);
6425
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 428, __pyx_L1_error)
6615
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 431, __pyx_L1_error)
6426
6616
  __Pyx_GOTREF(__pyx_t_7);
6427
6617
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
6428
- __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_7, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 428, __pyx_L1_error)
6618
+ __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_7, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 431, __pyx_L1_error)
6429
6619
  __Pyx_GOTREF(__pyx_t_6);
6430
6620
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
6431
6621
  __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_5;
@@ -6433,18 +6623,18 @@ static PyObject *__pyx_pf_6a_sync_10exceptions_22PersistedTaskException___init__
6433
6623
  __Pyx_GIVEREF(__pyx_t_6);
6434
6624
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6);
6435
6625
  __pyx_t_6 = 0;
6436
- __Pyx_INCREF(__pyx_kp_u__19);
6626
+ __Pyx_INCREF(__pyx_kp_u__20);
6437
6627
  __pyx_t_4 += 2;
6438
- __Pyx_GIVEREF(__pyx_kp_u__19);
6439
- PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_kp_u__19);
6440
- __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_exc, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 428, __pyx_L1_error)
6628
+ __Pyx_GIVEREF(__pyx_kp_u__20);
6629
+ PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_kp_u__20);
6630
+ __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_exc, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 431, __pyx_L1_error)
6441
6631
  __Pyx_GOTREF(__pyx_t_6);
6442
6632
  __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_5;
6443
6633
  __pyx_t_4 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
6444
6634
  __Pyx_GIVEREF(__pyx_t_6);
6445
6635
  PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_6);
6446
6636
  __pyx_t_6 = 0;
6447
- __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_3, 3, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 428, __pyx_L1_error)
6637
+ __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_3, 3, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 431, __pyx_L1_error)
6448
6638
  __Pyx_GOTREF(__pyx_t_6);
6449
6639
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6450
6640
  __pyx_t_3 = NULL;
@@ -6466,33 +6656,33 @@ static PyObject *__pyx_pf_6a_sync_10exceptions_22PersistedTaskException___init__
6466
6656
  __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_8, 3+__pyx_t_8);
6467
6657
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
6468
6658
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
6469
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 428, __pyx_L1_error)
6659
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 431, __pyx_L1_error)
6470
6660
  __Pyx_GOTREF(__pyx_t_1);
6471
6661
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
6472
6662
  }
6473
6663
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6474
6664
 
6475
- /* "a_sync/exceptions.pyx":429
6665
+ /* "a_sync/exceptions.pyx":432
6476
6666
  * """
6477
6667
  * BaseException.__init__(self, f"{exc.__class__.__name__}: {exc}", task)
6478
6668
  * self.exception = exc # <<<<<<<<<<<<<<
6479
6669
  * self.task = task
6480
6670
  *
6481
6671
  */
6482
- __Pyx_TraceLine(429,0,__PYX_ERR(0, 429, __pyx_L1_error))
6483
- if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_exception, __pyx_v_exc) < 0) __PYX_ERR(0, 429, __pyx_L1_error)
6672
+ __Pyx_TraceLine(432,0,__PYX_ERR(0, 432, __pyx_L1_error))
6673
+ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_exception, __pyx_v_exc) < 0) __PYX_ERR(0, 432, __pyx_L1_error)
6484
6674
 
6485
- /* "a_sync/exceptions.pyx":430
6675
+ /* "a_sync/exceptions.pyx":433
6486
6676
  * BaseException.__init__(self, f"{exc.__class__.__name__}: {exc}", task)
6487
6677
  * self.exception = exc
6488
6678
  * self.task = task # <<<<<<<<<<<<<<
6489
6679
  *
6490
6680
  *
6491
6681
  */
6492
- __Pyx_TraceLine(430,0,__PYX_ERR(0, 430, __pyx_L1_error))
6493
- if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_task, __pyx_v_task) < 0) __PYX_ERR(0, 430, __pyx_L1_error)
6682
+ __Pyx_TraceLine(433,0,__PYX_ERR(0, 433, __pyx_L1_error))
6683
+ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_task, __pyx_v_task) < 0) __PYX_ERR(0, 433, __pyx_L1_error)
6494
6684
 
6495
- /* "a_sync/exceptions.pyx":417
6685
+ /* "a_sync/exceptions.pyx":420
6496
6686
  * """
6497
6687
  *
6498
6688
  * def __init__(self, exc: E, task: Task) -> None: # <<<<<<<<<<<<<<
@@ -6722,6 +6912,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
6722
6912
  {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1},
6723
6913
  {&__pyx_n_s_SyncModeInAsyncContextError, __pyx_k_SyncModeInAsyncContextError, sizeof(__pyx_k_SyncModeInAsyncContextError), 0, 0, 1, 1},
6724
6914
  {&__pyx_n_s_SyncModeInAsyncContextError___in, __pyx_k_SyncModeInAsyncContextError___in, sizeof(__pyx_k_SyncModeInAsyncContextError___in), 0, 0, 1, 1},
6915
+ {&__pyx_n_s_SyncModeInAsyncContextError___re, __pyx_k_SyncModeInAsyncContextError___re, sizeof(__pyx_k_SyncModeInAsyncContextError___re), 0, 0, 1, 1},
6725
6916
  {&__pyx_n_s_TYPE_CHECKING, __pyx_k_TYPE_CHECKING, sizeof(__pyx_k_TYPE_CHECKING), 0, 0, 1, 1},
6726
6917
  {&__pyx_n_s_Task, __pyx_k_Task, sizeof(__pyx_k_Task), 0, 0, 1, 1},
6727
6918
  {&__pyx_n_s_TaskMapping, __pyx_k_TaskMapping, sizeof(__pyx_k_TaskMapping), 0, 0, 1, 1},
@@ -6741,11 +6932,11 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
6741
6932
  {&__pyx_kp_u_Viable_flags, __pyx_k_Viable_flags, sizeof(__pyx_k_Viable_flags), 0, 1, 0, 0},
6742
6933
  {&__pyx_kp_u_You_passed, __pyx_k_You_passed, sizeof(__pyx_k_You_passed), 0, 1, 0, 0},
6743
6934
  {&__pyx_kp_u__14, __pyx_k__14, sizeof(__pyx_k__14), 0, 1, 0, 0},
6744
- {&__pyx_kp_u__17, __pyx_k__17, sizeof(__pyx_k__17), 0, 1, 0, 0},
6745
- {&__pyx_kp_u__19, __pyx_k__19, sizeof(__pyx_k__19), 0, 1, 0, 0},
6746
- {&__pyx_n_s__20, __pyx_k__20, sizeof(__pyx_k__20), 0, 0, 1, 1},
6935
+ {&__pyx_kp_u__18, __pyx_k__18, sizeof(__pyx_k__18), 0, 1, 0, 0},
6936
+ {&__pyx_kp_u__20, __pyx_k__20, sizeof(__pyx_k__20), 0, 1, 0, 0},
6937
+ {&__pyx_n_s__21, __pyx_k__21, sizeof(__pyx_k__21), 0, 0, 1, 1},
6747
6938
  {&__pyx_kp_u__3, __pyx_k__3, sizeof(__pyx_k__3), 0, 1, 0, 0},
6748
- {&__pyx_n_s__42, __pyx_k__42, sizeof(__pyx_k__42), 0, 0, 1, 1},
6939
+ {&__pyx_n_s__44, __pyx_k__44, sizeof(__pyx_k__44), 0, 0, 1, 1},
6749
6940
  {&__pyx_kp_u__5, __pyx_k__5, sizeof(__pyx_k__5), 0, 1, 0, 0},
6750
6941
  {&__pyx_kp_u__7, __pyx_k__7, sizeof(__pyx_k__7), 0, 1, 0, 0},
6751
6942
  {&__pyx_kp_u__9, __pyx_k__9, sizeof(__pyx_k__9), 0, 1, 0, 0},
@@ -6797,6 +6988,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
6797
6988
  {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1},
6798
6989
  {&__pyx_n_s_present_flags, __pyx_k_present_flags, sizeof(__pyx_k_present_flags), 0, 0, 1, 1},
6799
6990
  {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1},
6991
+ {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1},
6800
6992
  {&__pyx_n_s_return, __pyx_k_return, sizeof(__pyx_k_return), 0, 0, 1, 1},
6801
6993
  {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1},
6802
6994
  {&__pyx_n_s_set_name, __pyx_k_set_name, sizeof(__pyx_k_set_name), 0, 0, 1, 1},
@@ -6833,12 +7025,12 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6833
7025
  * """
6834
7026
  * Base exception class for flag-related errors in the a_sync library.
6835
7027
  */
6836
- __pyx_tuple__21 = PyTuple_Pack(1, __pyx_builtin_ValueError); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 14, __pyx_L1_error)
6837
- __Pyx_GOTREF(__pyx_tuple__21);
6838
- __Pyx_GIVEREF(__pyx_tuple__21);
6839
7028
  __pyx_tuple__22 = PyTuple_Pack(1, __pyx_builtin_ValueError); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 14, __pyx_L1_error)
6840
7029
  __Pyx_GOTREF(__pyx_tuple__22);
6841
7030
  __Pyx_GIVEREF(__pyx_tuple__22);
7031
+ __pyx_tuple__23 = PyTuple_Pack(1, __pyx_builtin_ValueError); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 14, __pyx_L1_error)
7032
+ __Pyx_GOTREF(__pyx_tuple__23);
7033
+ __Pyx_GIVEREF(__pyx_tuple__23);
6842
7034
 
6843
7035
  /* "a_sync/exceptions.pyx":35
6844
7036
  * """The set of viable flags: {'sync', 'asynchronous'}."""
@@ -6847,10 +7039,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6847
7039
  * """
6848
7040
  * Returns a description of the target for the flag error message.
6849
7041
  */
6850
- __pyx_tuple__23 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_target); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 35, __pyx_L1_error)
6851
- __Pyx_GOTREF(__pyx_tuple__23);
6852
- __Pyx_GIVEREF(__pyx_tuple__23);
6853
- __pyx_codeobj_ = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__23, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_desc, 35, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj_)) __PYX_ERR(0, 35, __pyx_L1_error)
7042
+ __pyx_tuple__24 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_target); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 35, __pyx_L1_error)
7043
+ __Pyx_GOTREF(__pyx_tuple__24);
7044
+ __Pyx_GIVEREF(__pyx_tuple__24);
7045
+ __pyx_codeobj_ = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__24, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_desc, 35, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj_)) __PYX_ERR(0, 35, __pyx_L1_error)
6854
7046
 
6855
7047
  /* "a_sync/exceptions.pyx":70
6856
7048
  * """
@@ -6859,13 +7051,13 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6859
7051
  * """
6860
7052
  * Initializes the NoFlagsFound exception.
6861
7053
  */
6862
- __pyx_tuple__24 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_target, __pyx_n_s_kwargs_keys, __pyx_n_s_err); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 70, __pyx_L1_error)
6863
- __Pyx_GOTREF(__pyx_tuple__24);
6864
- __Pyx_GIVEREF(__pyx_tuple__24);
6865
- __pyx_codeobj__2 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__24, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 70, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2)) __PYX_ERR(0, 70, __pyx_L1_error)
6866
- __pyx_tuple__25 = PyTuple_Pack(1, Py_None); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 70, __pyx_L1_error)
7054
+ __pyx_tuple__25 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_target, __pyx_n_s_kwargs_keys, __pyx_n_s_err); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 70, __pyx_L1_error)
6867
7055
  __Pyx_GOTREF(__pyx_tuple__25);
6868
7056
  __Pyx_GIVEREF(__pyx_tuple__25);
7057
+ __pyx_codeobj__2 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 70, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2)) __PYX_ERR(0, 70, __pyx_L1_error)
7058
+ __pyx_tuple__26 = PyTuple_Pack(1, Py_None); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 70, __pyx_L1_error)
7059
+ __Pyx_GOTREF(__pyx_tuple__26);
7060
+ __Pyx_GIVEREF(__pyx_tuple__26);
6869
7061
 
6870
7062
  /* "a_sync/exceptions.pyx":100
6871
7063
  * """
@@ -6874,10 +7066,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6874
7066
  * """
6875
7067
  * Initializes the TooManyFlags exception.
6876
7068
  */
6877
- __pyx_tuple__26 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_target, __pyx_n_s_present_flags, __pyx_n_s_err); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 100, __pyx_L1_error)
6878
- __Pyx_GOTREF(__pyx_tuple__26);
6879
- __Pyx_GIVEREF(__pyx_tuple__26);
6880
- __pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__26, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 100, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(0, 100, __pyx_L1_error)
7069
+ __pyx_tuple__27 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_target, __pyx_n_s_present_flags, __pyx_n_s_err); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 100, __pyx_L1_error)
7070
+ __Pyx_GOTREF(__pyx_tuple__27);
7071
+ __Pyx_GIVEREF(__pyx_tuple__27);
7072
+ __pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 100, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(0, 100, __pyx_L1_error)
6881
7073
 
6882
7074
  /* "a_sync/exceptions.pyx":133
6883
7075
  * """
@@ -6886,10 +7078,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6886
7078
  * """
6887
7079
  * Initializes the InvalidFlag exception.
6888
7080
  */
6889
- __pyx_tuple__27 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_flag, __pyx_n_s_err); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 133, __pyx_L1_error)
6890
- __Pyx_GOTREF(__pyx_tuple__27);
6891
- __Pyx_GIVEREF(__pyx_tuple__27);
6892
- __pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 133, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 133, __pyx_L1_error)
7081
+ __pyx_tuple__28 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_flag, __pyx_n_s_err); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 133, __pyx_L1_error)
7082
+ __Pyx_GOTREF(__pyx_tuple__28);
7083
+ __Pyx_GIVEREF(__pyx_tuple__28);
7084
+ __pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__28, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 133, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 133, __pyx_L1_error)
6893
7085
 
6894
7086
  /* "a_sync/exceptions.pyx":160
6895
7087
  * """
@@ -6898,10 +7090,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6898
7090
  * """
6899
7091
  * Initializes the InvalidFlagValue exception.
6900
7092
  */
6901
- __pyx_tuple__28 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_flag, __pyx_n_s_flag_value); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 160, __pyx_L1_error)
6902
- __Pyx_GOTREF(__pyx_tuple__28);
6903
- __Pyx_GIVEREF(__pyx_tuple__28);
6904
- __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__28, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 160, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 160, __pyx_L1_error)
7093
+ __pyx_tuple__29 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_flag, __pyx_n_s_flag_value); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 160, __pyx_L1_error)
7094
+ __Pyx_GOTREF(__pyx_tuple__29);
7095
+ __Pyx_GIVEREF(__pyx_tuple__29);
7096
+ __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__29, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 160, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 160, __pyx_L1_error)
6905
7097
 
6906
7098
  /* "a_sync/exceptions.pyx":189
6907
7099
  * """
@@ -6910,10 +7102,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6910
7102
  * """
6911
7103
  * Initializes the FlagNotDefined exception.
6912
7104
  */
6913
- __pyx_tuple__29 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_obj, __pyx_n_s_flag); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 189, __pyx_L1_error)
6914
- __Pyx_GOTREF(__pyx_tuple__29);
6915
- __Pyx_GIVEREF(__pyx_tuple__29);
6916
- __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__29, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 189, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 189, __pyx_L1_error)
7105
+ __pyx_tuple__30 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_obj, __pyx_n_s_flag); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 189, __pyx_L1_error)
7106
+ __Pyx_GOTREF(__pyx_tuple__30);
7107
+ __Pyx_GIVEREF(__pyx_tuple__30);
7108
+ __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__30, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 189, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 189, __pyx_L1_error)
6917
7109
 
6918
7110
  /* "a_sync/exceptions.pyx":203
6919
7111
  *
@@ -6922,12 +7114,12 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6922
7114
  * """
6923
7115
  * Raised when a function that should be sync is async or vice-versa.
6924
7116
  */
6925
- __pyx_tuple__30 = PyTuple_Pack(1, __pyx_builtin_ValueError); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 203, __pyx_L1_error)
6926
- __Pyx_GOTREF(__pyx_tuple__30);
6927
- __Pyx_GIVEREF(__pyx_tuple__30);
6928
7117
  __pyx_tuple__31 = PyTuple_Pack(1, __pyx_builtin_ValueError); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 203, __pyx_L1_error)
6929
7118
  __Pyx_GOTREF(__pyx_tuple__31);
6930
7119
  __Pyx_GIVEREF(__pyx_tuple__31);
7120
+ __pyx_tuple__32 = PyTuple_Pack(1, __pyx_builtin_ValueError); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(0, 203, __pyx_L1_error)
7121
+ __Pyx_GOTREF(__pyx_tuple__32);
7122
+ __Pyx_GIVEREF(__pyx_tuple__32);
6931
7123
 
6932
7124
  /* "a_sync/exceptions.pyx":228
6933
7125
  * """
@@ -6936,10 +7128,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6936
7128
  * """
6937
7129
  * Initializes the FunctionNotAsync exception.
6938
7130
  */
6939
- __pyx_tuple__32 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_fn); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(0, 228, __pyx_L1_error)
6940
- __Pyx_GOTREF(__pyx_tuple__32);
6941
- __Pyx_GIVEREF(__pyx_tuple__32);
6942
- __pyx_codeobj__11 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__32, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 228, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__11)) __PYX_ERR(0, 228, __pyx_L1_error)
7131
+ __pyx_tuple__33 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_fn); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 228, __pyx_L1_error)
7132
+ __Pyx_GOTREF(__pyx_tuple__33);
7133
+ __Pyx_GIVEREF(__pyx_tuple__33);
7134
+ __pyx_codeobj__11 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__33, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 228, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__11)) __PYX_ERR(0, 228, __pyx_L1_error)
6943
7135
 
6944
7136
  /* "a_sync/exceptions.pyx":259
6945
7137
  * """
@@ -6948,7 +7140,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6948
7140
  * """
6949
7141
  * Initializes the FunctionNotSync exception.
6950
7142
  */
6951
- __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__32, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 259, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(0, 259, __pyx_L1_error)
7143
+ __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__33, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 259, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(0, 259, __pyx_L1_error)
6952
7144
 
6953
7145
  /* "a_sync/exceptions.pyx":274
6954
7146
  *
@@ -6957,12 +7149,12 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6957
7149
  * """
6958
7150
  * Raised for runtime errors in asynchronous operations.
6959
7151
  */
6960
- __pyx_tuple__33 = PyTuple_Pack(1, __pyx_builtin_RuntimeError); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 274, __pyx_L1_error)
6961
- __Pyx_GOTREF(__pyx_tuple__33);
6962
- __Pyx_GIVEREF(__pyx_tuple__33);
6963
7152
  __pyx_tuple__34 = PyTuple_Pack(1, __pyx_builtin_RuntimeError); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(0, 274, __pyx_L1_error)
6964
7153
  __Pyx_GOTREF(__pyx_tuple__34);
6965
7154
  __Pyx_GIVEREF(__pyx_tuple__34);
7155
+ __pyx_tuple__35 = PyTuple_Pack(1, __pyx_builtin_RuntimeError); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 274, __pyx_L1_error)
7156
+ __Pyx_GOTREF(__pyx_tuple__35);
7157
+ __Pyx_GIVEREF(__pyx_tuple__35);
6966
7158
 
6967
7159
  /* "a_sync/exceptions.pyx":286
6968
7160
  * """
@@ -6971,10 +7163,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6971
7163
  * """
6972
7164
  * Initializes the ASyncRuntimeError exception.
6973
7165
  */
6974
- __pyx_tuple__35 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_e); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 286, __pyx_L1_error)
6975
- __Pyx_GOTREF(__pyx_tuple__35);
6976
- __Pyx_GIVEREF(__pyx_tuple__35);
6977
- __pyx_codeobj__13 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__35, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 286, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__13)) __PYX_ERR(0, 286, __pyx_L1_error)
7166
+ __pyx_tuple__36 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_e); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 286, __pyx_L1_error)
7167
+ __Pyx_GOTREF(__pyx_tuple__36);
7168
+ __Pyx_GIVEREF(__pyx_tuple__36);
7169
+ __pyx_codeobj__13 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__36, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 286, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__13)) __PYX_ERR(0, 286, __pyx_L1_error)
6978
7170
 
6979
7171
  /* "a_sync/exceptions.pyx":313
6980
7172
  * """
@@ -6983,51 +7175,63 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
6983
7175
  * """
6984
7176
  * Initializes the SyncModeInAsyncContextError exception.
6985
7177
  */
6986
- __pyx_tuple__36 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_err); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 313, __pyx_L1_error)
6987
- __Pyx_GOTREF(__pyx_tuple__36);
6988
- __Pyx_GIVEREF(__pyx_tuple__36);
6989
- __pyx_codeobj__15 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__36, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 313, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__15)) __PYX_ERR(0, 313, __pyx_L1_error)
6990
- __pyx_tuple__37 = PyTuple_Pack(1, ((PyObject*)__pyx_kp_u__14)); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 313, __pyx_L1_error)
7178
+ __pyx_tuple__37 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_err); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 313, __pyx_L1_error)
6991
7179
  __Pyx_GOTREF(__pyx_tuple__37);
6992
7180
  __Pyx_GIVEREF(__pyx_tuple__37);
7181
+ __pyx_codeobj__15 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 313, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__15)) __PYX_ERR(0, 313, __pyx_L1_error)
7182
+ __pyx_tuple__38 = PyTuple_Pack(1, ((PyObject*)__pyx_kp_u__14)); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(0, 313, __pyx_L1_error)
7183
+ __Pyx_GOTREF(__pyx_tuple__38);
7184
+ __Pyx_GIVEREF(__pyx_tuple__38);
6993
7185
 
6994
- /* "a_sync/exceptions.pyx":344
7186
+ /* "a_sync/exceptions.pyx":326
7187
+ * BaseException.__init__(self, err)
7188
+ *
7189
+ * def __reduce__(self): # <<<<<<<<<<<<<<
7190
+ * return (self.__class__, (str(self),))
7191
+ *
7192
+ */
7193
+ __pyx_tuple__39 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 326, __pyx_L1_error)
7194
+ __Pyx_GOTREF(__pyx_tuple__39);
7195
+ __Pyx_GIVEREF(__pyx_tuple__39);
7196
+ __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_reduce, 326, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 326, __pyx_L1_error)
7197
+
7198
+ /* "a_sync/exceptions.pyx":347
6995
7199
  * _msg: str
6996
7200
  *
6997
7201
  * def __init__(self, mapping: "TaskMapping", msg: str = ""): # <<<<<<<<<<<<<<
6998
7202
  * """
6999
7203
  * Initializes the MappingError exception.
7000
7204
  */
7001
- __pyx_tuple__38 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_mapping, __pyx_n_s_msg); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(0, 344, __pyx_L1_error)
7002
- __Pyx_GOTREF(__pyx_tuple__38);
7003
- __Pyx_GIVEREF(__pyx_tuple__38);
7004
- __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__38, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 344, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 344, __pyx_L1_error)
7205
+ __pyx_tuple__40 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_mapping, __pyx_n_s_msg); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(0, 347, __pyx_L1_error)
7206
+ __Pyx_GOTREF(__pyx_tuple__40);
7207
+ __Pyx_GIVEREF(__pyx_tuple__40);
7208
+ __pyx_codeobj__17 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__40, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 347, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__17)) __PYX_ERR(0, 347, __pyx_L1_error)
7005
7209
 
7006
- /* "a_sync/exceptions.pyx":417
7210
+ /* "a_sync/exceptions.pyx":420
7007
7211
  * """
7008
7212
  *
7009
7213
  * def __init__(self, exc: E, task: Task) -> None: # <<<<<<<<<<<<<<
7010
7214
  * """
7011
7215
  * Initializes the PersistedTaskException exception.
7012
7216
  */
7013
- __pyx_tuple__39 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_exc, __pyx_n_s_task); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 417, __pyx_L1_error)
7014
- __Pyx_GOTREF(__pyx_tuple__39);
7015
- __Pyx_GIVEREF(__pyx_tuple__39);
7016
- __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 417, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(0, 417, __pyx_L1_error)
7217
+ __pyx_tuple__41 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_exc, __pyx_n_s_task); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 420, __pyx_L1_error)
7218
+ __Pyx_GOTREF(__pyx_tuple__41);
7219
+ __Pyx_GIVEREF(__pyx_tuple__41);
7220
+ __pyx_codeobj__19 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_exceptions_pyx, __pyx_n_s_init, 420, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__19)) __PYX_ERR(0, 420, __pyx_L1_error)
7017
7221
 
7018
- /* "a_sync/exceptions.pyx":433
7222
+ /* "a_sync/exceptions.pyx":436
7019
7223
  *
7020
7224
  *
7021
7225
  * class EmptySequenceError(ValueError): # <<<<<<<<<<<<<<
7022
7226
  * """
7023
7227
  * Raised when an operation is attempted on an empty sequence but items are required.
7024
7228
  */
7025
- __pyx_tuple__40 = PyTuple_Pack(1, __pyx_builtin_ValueError); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(0, 433, __pyx_L1_error)
7026
- __Pyx_GOTREF(__pyx_tuple__40);
7027
- __Pyx_GIVEREF(__pyx_tuple__40);
7028
- __pyx_tuple__41 = PyTuple_Pack(1, __pyx_builtin_ValueError); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 433, __pyx_L1_error)
7029
- __Pyx_GOTREF(__pyx_tuple__41);
7030
- __Pyx_GIVEREF(__pyx_tuple__41);
7229
+ __pyx_tuple__42 = PyTuple_Pack(1, __pyx_builtin_ValueError); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(0, 436, __pyx_L1_error)
7230
+ __Pyx_GOTREF(__pyx_tuple__42);
7231
+ __Pyx_GIVEREF(__pyx_tuple__42);
7232
+ __pyx_tuple__43 = PyTuple_Pack(1, __pyx_builtin_ValueError); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 436, __pyx_L1_error)
7233
+ __Pyx_GOTREF(__pyx_tuple__43);
7234
+ __Pyx_GIVEREF(__pyx_tuple__43);
7031
7235
  __Pyx_RefNannyFinishContext();
7032
7236
  return 0;
7033
7237
  __pyx_L1_error:;
@@ -7444,9 +7648,9 @@ if (!__Pyx_RefNanny) {
7444
7648
  __Pyx_TraceLine(7,0,__PYX_ERR(0, 7, __pyx_L1_error))
7445
7649
  __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7, __pyx_L1_error)
7446
7650
  __Pyx_GOTREF(__pyx_t_3);
7447
- __Pyx_INCREF(__pyx_n_s__20);
7448
- __Pyx_GIVEREF(__pyx_n_s__20);
7449
- if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s__20)) __PYX_ERR(0, 7, __pyx_L1_error);
7651
+ __Pyx_INCREF(__pyx_n_s__21);
7652
+ __Pyx_GIVEREF(__pyx_n_s__21);
7653
+ if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s__21)) __PYX_ERR(0, 7, __pyx_L1_error);
7450
7654
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_a_sync__typing, __pyx_t_3, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7, __pyx_L1_error)
7451
7655
  __Pyx_GOTREF(__pyx_t_2);
7452
7656
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
@@ -7506,14 +7710,14 @@ if (!__Pyx_RefNanny) {
7506
7710
  * Base exception class for flag-related errors in the a_sync library.
7507
7711
  */
7508
7712
  __Pyx_TraceLine(14,0,__PYX_ERR(0, 14, __pyx_L1_error))
7509
- __pyx_t_3 = __Pyx_PEP560_update_bases(__pyx_tuple__22); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14, __pyx_L1_error)
7713
+ __pyx_t_3 = __Pyx_PEP560_update_bases(__pyx_tuple__23); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14, __pyx_L1_error)
7510
7714
  __Pyx_GOTREF(__pyx_t_3);
7511
7715
  __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error)
7512
7716
  __Pyx_GOTREF(__pyx_t_2);
7513
7717
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_3, __pyx_n_s_ASyncFlagException, __pyx_n_s_ASyncFlagException, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Base_exception_class_for_flag_r); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 14, __pyx_L1_error)
7514
7718
  __Pyx_GOTREF(__pyx_t_5);
7515
- if (__pyx_t_3 != __pyx_tuple__22) {
7516
- if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_tuple__22) < 0))) __PYX_ERR(0, 14, __pyx_L1_error)
7719
+ if (__pyx_t_3 != __pyx_tuple__23) {
7720
+ if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_tuple__23) < 0))) __PYX_ERR(0, 14, __pyx_L1_error)
7517
7721
  }
7518
7722
 
7519
7723
  /* "a_sync/exceptions.pyx":32
@@ -7596,7 +7800,7 @@ if (!__Pyx_RefNanny) {
7596
7800
  __Pyx_TraceLine(70,0,__PYX_ERR(0, 70, __pyx_L1_error))
7597
7801
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10exceptions_12NoFlagsFound_1__init__, 0, __pyx_n_s_NoFlagsFound___init, NULL, __pyx_n_s_a_sync_exceptions, __pyx_d, ((PyObject *)__pyx_codeobj__2)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 70, __pyx_L1_error)
7598
7802
  __Pyx_GOTREF(__pyx_t_2);
7599
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__25);
7803
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__26);
7600
7804
  if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_n_s_init, __pyx_t_2) < 0) __PYX_ERR(0, 70, __pyx_L1_error)
7601
7805
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
7602
7806
 
@@ -7861,14 +8065,14 @@ if (!__Pyx_RefNanny) {
7861
8065
  * Raised when a function that should be sync is async or vice-versa.
7862
8066
  */
7863
8067
  __Pyx_TraceLine(203,0,__PYX_ERR(0, 203, __pyx_L1_error))
7864
- __pyx_t_3 = __Pyx_PEP560_update_bases(__pyx_tuple__31); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 203, __pyx_L1_error)
8068
+ __pyx_t_3 = __Pyx_PEP560_update_bases(__pyx_tuple__32); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 203, __pyx_L1_error)
7865
8069
  __Pyx_GOTREF(__pyx_t_3);
7866
8070
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 203, __pyx_L1_error)
7867
8071
  __Pyx_GOTREF(__pyx_t_6);
7868
8072
  __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_3, __pyx_n_s_ImproperFunctionType, __pyx_n_s_ImproperFunctionType, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Raised_when_a_function_that_sho); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 203, __pyx_L1_error)
7869
8073
  __Pyx_GOTREF(__pyx_t_7);
7870
- if (__pyx_t_3 != __pyx_tuple__31) {
7871
- if (unlikely((PyDict_SetItemString(__pyx_t_7, "__orig_bases__", __pyx_tuple__31) < 0))) __PYX_ERR(0, 203, __pyx_L1_error)
8074
+ if (__pyx_t_3 != __pyx_tuple__32) {
8075
+ if (unlikely((PyDict_SetItemString(__pyx_t_7, "__orig_bases__", __pyx_tuple__32) < 0))) __PYX_ERR(0, 203, __pyx_L1_error)
7872
8076
  }
7873
8077
  __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_n_s_ImproperFunctionType, __pyx_t_3, __pyx_t_7, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __pyx_L1_error)
7874
8078
  __Pyx_GOTREF(__pyx_t_2);
@@ -7996,14 +8200,14 @@ if (!__Pyx_RefNanny) {
7996
8200
  * Raised for runtime errors in asynchronous operations.
7997
8201
  */
7998
8202
  __Pyx_TraceLine(274,0,__PYX_ERR(0, 274, __pyx_L1_error))
7999
- __pyx_t_3 = __Pyx_PEP560_update_bases(__pyx_tuple__34); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 274, __pyx_L1_error)
8203
+ __pyx_t_3 = __Pyx_PEP560_update_bases(__pyx_tuple__35); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 274, __pyx_L1_error)
8000
8204
  __Pyx_GOTREF(__pyx_t_3);
8001
8205
  __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 274, __pyx_L1_error)
8002
8206
  __Pyx_GOTREF(__pyx_t_2);
8003
8207
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_3, __pyx_n_s_ASyncRuntimeError, __pyx_n_s_ASyncRuntimeError, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Raised_for_runtime_errors_in_as); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 274, __pyx_L1_error)
8004
8208
  __Pyx_GOTREF(__pyx_t_6);
8005
- if (__pyx_t_3 != __pyx_tuple__34) {
8006
- if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_tuple__34) < 0))) __PYX_ERR(0, 274, __pyx_L1_error)
8209
+ if (__pyx_t_3 != __pyx_tuple__35) {
8210
+ if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_tuple__35) < 0))) __PYX_ERR(0, 274, __pyx_L1_error)
8007
8211
  }
8008
8212
 
8009
8213
  /* "a_sync/exceptions.pyx":286
@@ -8079,12 +8283,25 @@ if (!__Pyx_RefNanny) {
8079
8283
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_err, __pyx_n_s_str) < 0) __PYX_ERR(0, 313, __pyx_L1_error)
8080
8284
  __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10exceptions_27SyncModeInAsyncContextError_1__init__, 0, __pyx_n_s_SyncModeInAsyncContextError___in, NULL, __pyx_n_s_a_sync_exceptions, __pyx_d, ((PyObject *)__pyx_codeobj__15)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 313, __pyx_L1_error)
8081
8285
  __Pyx_GOTREF(__pyx_t_7);
8082
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__37);
8286
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__38);
8083
8287
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_2);
8084
8288
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8085
8289
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_init, __pyx_t_7) < 0) __PYX_ERR(0, 313, __pyx_L1_error)
8086
8290
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8087
8291
 
8292
+ /* "a_sync/exceptions.pyx":326
8293
+ * BaseException.__init__(self, err)
8294
+ *
8295
+ * def __reduce__(self): # <<<<<<<<<<<<<<
8296
+ * return (self.__class__, (str(self),))
8297
+ *
8298
+ */
8299
+ __Pyx_TraceLine(326,0,__PYX_ERR(0, 326, __pyx_L1_error))
8300
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10exceptions_27SyncModeInAsyncContextError_3__reduce__, 0, __pyx_n_s_SyncModeInAsyncContextError___re, NULL, __pyx_n_s_a_sync_exceptions, __pyx_d, ((PyObject *)__pyx_codeobj__16)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 326, __pyx_L1_error)
8301
+ __Pyx_GOTREF(__pyx_t_7);
8302
+ if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_reduce, __pyx_t_7) < 0) __PYX_ERR(0, 326, __pyx_L1_error)
8303
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8304
+
8088
8305
  /* "a_sync/exceptions.pyx":299
8089
8306
  *
8090
8307
  *
@@ -8101,255 +8318,255 @@ if (!__Pyx_RefNanny) {
8101
8318
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
8102
8319
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8103
8320
 
8104
- /* "a_sync/exceptions.pyx":327
8321
+ /* "a_sync/exceptions.pyx":330
8105
8322
  *
8106
8323
  *
8107
8324
  * class MappingError(Exception): # <<<<<<<<<<<<<<
8108
8325
  * """
8109
8326
  * Base class for errors related to :class:`~TaskMapping`.
8110
8327
  */
8111
- __Pyx_TraceLine(327,0,__PYX_ERR(0, 327, __pyx_L1_error))
8112
- __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 327, __pyx_L1_error)
8328
+ __Pyx_TraceLine(330,0,__PYX_ERR(0, 330, __pyx_L1_error))
8329
+ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 330, __pyx_L1_error)
8113
8330
  __Pyx_GOTREF(__pyx_t_3);
8114
8331
  __Pyx_INCREF((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]));
8115
8332
  __Pyx_GIVEREF((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]));
8116
- if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])))) __PYX_ERR(0, 327, __pyx_L1_error);
8117
- __pyx_t_6 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 327, __pyx_L1_error)
8333
+ if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])))) __PYX_ERR(0, 330, __pyx_L1_error);
8334
+ __pyx_t_6 = __Pyx_PEP560_update_bases(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 330, __pyx_L1_error)
8118
8335
  __Pyx_GOTREF(__pyx_t_6);
8119
- __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 327, __pyx_L1_error)
8336
+ __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 330, __pyx_L1_error)
8120
8337
  __Pyx_GOTREF(__pyx_t_5);
8121
- __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_6, __pyx_n_s_MappingError, __pyx_n_s_MappingError, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Base_class_for_errors_related_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 327, __pyx_L1_error)
8338
+ __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_6, __pyx_n_s_MappingError, __pyx_n_s_MappingError, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Base_class_for_errors_related_t); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 330, __pyx_L1_error)
8122
8339
  __Pyx_GOTREF(__pyx_t_7);
8123
8340
  if (__pyx_t_6 != __pyx_t_3) {
8124
- if (unlikely((PyDict_SetItemString(__pyx_t_7, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 327, __pyx_L1_error)
8341
+ if (unlikely((PyDict_SetItemString(__pyx_t_7, "__orig_bases__", __pyx_t_3) < 0))) __PYX_ERR(0, 330, __pyx_L1_error)
8125
8342
  }
8126
8343
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8127
- __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 327, __pyx_L1_error)
8344
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 330, __pyx_L1_error)
8128
8345
  __Pyx_GOTREF(__pyx_t_3);
8129
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_msg_2, __pyx_n_s_str) < 0) __PYX_ERR(0, 327, __pyx_L1_error)
8130
- if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_n_s_annotations, __pyx_t_3) < 0) __PYX_ERR(0, 327, __pyx_L1_error)
8346
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_msg_2, __pyx_n_s_str) < 0) __PYX_ERR(0, 330, __pyx_L1_error)
8347
+ if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_n_s_annotations, __pyx_t_3) < 0) __PYX_ERR(0, 330, __pyx_L1_error)
8131
8348
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8132
8349
 
8133
- /* "a_sync/exceptions.pyx":344
8350
+ /* "a_sync/exceptions.pyx":347
8134
8351
  * _msg: str
8135
8352
  *
8136
8353
  * def __init__(self, mapping: "TaskMapping", msg: str = ""): # <<<<<<<<<<<<<<
8137
8354
  * """
8138
8355
  * Initializes the MappingError exception.
8139
8356
  */
8140
- __Pyx_TraceLine(344,0,__PYX_ERR(0, 344, __pyx_L1_error))
8141
- __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 344, __pyx_L1_error)
8357
+ __Pyx_TraceLine(347,0,__PYX_ERR(0, 347, __pyx_L1_error))
8358
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 347, __pyx_L1_error)
8142
8359
  __Pyx_GOTREF(__pyx_t_3);
8143
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_mapping, __pyx_kp_s_TaskMapping_2) < 0) __PYX_ERR(0, 344, __pyx_L1_error)
8144
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_msg, __pyx_n_s_str) < 0) __PYX_ERR(0, 344, __pyx_L1_error)
8145
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10exceptions_12MappingError_1__init__, 0, __pyx_n_s_MappingError___init, NULL, __pyx_n_s_a_sync_exceptions, __pyx_d, ((PyObject *)__pyx_codeobj__16)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 344, __pyx_L1_error)
8360
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_mapping, __pyx_kp_s_TaskMapping_2) < 0) __PYX_ERR(0, 347, __pyx_L1_error)
8361
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_msg, __pyx_n_s_str) < 0) __PYX_ERR(0, 347, __pyx_L1_error)
8362
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10exceptions_12MappingError_1__init__, 0, __pyx_n_s_MappingError___init, NULL, __pyx_n_s_a_sync_exceptions, __pyx_d, ((PyObject *)__pyx_codeobj__17)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 347, __pyx_L1_error)
8146
8363
  __Pyx_GOTREF(__pyx_t_2);
8147
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__37);
8364
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__38);
8148
8365
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_3);
8149
8366
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8150
- if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_n_s_init, __pyx_t_2) < 0) __PYX_ERR(0, 344, __pyx_L1_error)
8367
+ if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_n_s_init, __pyx_t_2) < 0) __PYX_ERR(0, 347, __pyx_L1_error)
8151
8368
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8152
8369
 
8153
- /* "a_sync/exceptions.pyx":327
8370
+ /* "a_sync/exceptions.pyx":330
8154
8371
  *
8155
8372
  *
8156
8373
  * class MappingError(Exception): # <<<<<<<<<<<<<<
8157
8374
  * """
8158
8375
  * Base class for errors related to :class:`~TaskMapping`.
8159
8376
  */
8160
- __Pyx_TraceLine(327,0,__PYX_ERR(0, 327, __pyx_L1_error))
8161
- __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_MappingError, __pyx_t_6, __pyx_t_7, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 327, __pyx_L1_error)
8377
+ __Pyx_TraceLine(330,0,__PYX_ERR(0, 330, __pyx_L1_error))
8378
+ __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_MappingError, __pyx_t_6, __pyx_t_7, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 330, __pyx_L1_error)
8162
8379
  __Pyx_GOTREF(__pyx_t_2);
8163
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_MappingError, __pyx_t_2) < 0) __PYX_ERR(0, 327, __pyx_L1_error)
8380
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_MappingError, __pyx_t_2) < 0) __PYX_ERR(0, 330, __pyx_L1_error)
8164
8381
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8165
8382
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8166
8383
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8167
8384
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
8168
8385
 
8169
- /* "a_sync/exceptions.pyx":362
8386
+ /* "a_sync/exceptions.pyx":365
8170
8387
  *
8171
8388
  *
8172
8389
  * class MappingIsEmptyError(MappingError): # <<<<<<<<<<<<<<
8173
8390
  * """
8174
8391
  * Raised when a TaskMapping is empty and an operation requires it to have items.
8175
8392
  */
8176
- __Pyx_TraceLine(362,0,__PYX_ERR(0, 362, __pyx_L1_error))
8177
- __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_MappingError); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 362, __pyx_L1_error)
8393
+ __Pyx_TraceLine(365,0,__PYX_ERR(0, 365, __pyx_L1_error))
8394
+ __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_MappingError); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 365, __pyx_L1_error)
8178
8395
  __Pyx_GOTREF(__pyx_t_6);
8179
- __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 362, __pyx_L1_error)
8396
+ __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 365, __pyx_L1_error)
8180
8397
  __Pyx_GOTREF(__pyx_t_5);
8181
8398
  __Pyx_GIVEREF(__pyx_t_6);
8182
- if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6)) __PYX_ERR(0, 362, __pyx_L1_error);
8399
+ if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6)) __PYX_ERR(0, 365, __pyx_L1_error);
8183
8400
  __pyx_t_6 = 0;
8184
- __pyx_t_6 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 362, __pyx_L1_error)
8401
+ __pyx_t_6 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 365, __pyx_L1_error)
8185
8402
  __Pyx_GOTREF(__pyx_t_6);
8186
- __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 362, __pyx_L1_error)
8403
+ __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 365, __pyx_L1_error)
8187
8404
  __Pyx_GOTREF(__pyx_t_7);
8188
- __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_6, __pyx_n_s_MappingIsEmptyError, __pyx_n_s_MappingIsEmptyError, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Raised_when_a_TaskMapping_is_em); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 362, __pyx_L1_error)
8405
+ __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_6, __pyx_n_s_MappingIsEmptyError, __pyx_n_s_MappingIsEmptyError, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Raised_when_a_TaskMapping_is_em); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 365, __pyx_L1_error)
8189
8406
  __Pyx_GOTREF(__pyx_t_2);
8190
8407
  if (__pyx_t_6 != __pyx_t_5) {
8191
- if (unlikely((PyDict_SetItemString(__pyx_t_2, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 362, __pyx_L1_error)
8408
+ if (unlikely((PyDict_SetItemString(__pyx_t_2, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 365, __pyx_L1_error)
8192
8409
  }
8193
8410
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8194
8411
 
8195
- /* "a_sync/exceptions.pyx":377
8412
+ /* "a_sync/exceptions.pyx":380
8196
8413
  * """
8197
8414
  *
8198
8415
  * _msg = "TaskMapping does not contain anything to yield" # <<<<<<<<<<<<<<
8199
8416
  *
8200
8417
  *
8201
8418
  */
8202
- __Pyx_TraceLine(377,0,__PYX_ERR(0, 377, __pyx_L1_error))
8203
- if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_msg_2, __pyx_kp_u_TaskMapping_does_not_contain_any) < 0) __PYX_ERR(0, 377, __pyx_L1_error)
8419
+ __Pyx_TraceLine(380,0,__PYX_ERR(0, 380, __pyx_L1_error))
8420
+ if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_msg_2, __pyx_kp_u_TaskMapping_does_not_contain_any) < 0) __PYX_ERR(0, 380, __pyx_L1_error)
8204
8421
 
8205
- /* "a_sync/exceptions.pyx":362
8422
+ /* "a_sync/exceptions.pyx":365
8206
8423
  *
8207
8424
  *
8208
8425
  * class MappingIsEmptyError(MappingError): # <<<<<<<<<<<<<<
8209
8426
  * """
8210
8427
  * Raised when a TaskMapping is empty and an operation requires it to have items.
8211
8428
  */
8212
- __Pyx_TraceLine(362,0,__PYX_ERR(0, 362, __pyx_L1_error))
8213
- __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_n_s_MappingIsEmptyError, __pyx_t_6, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 362, __pyx_L1_error)
8429
+ __Pyx_TraceLine(365,0,__PYX_ERR(0, 365, __pyx_L1_error))
8430
+ __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_n_s_MappingIsEmptyError, __pyx_t_6, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 365, __pyx_L1_error)
8214
8431
  __Pyx_GOTREF(__pyx_t_5);
8215
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_MappingIsEmptyError, __pyx_t_5) < 0) __PYX_ERR(0, 362, __pyx_L1_error)
8432
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_MappingIsEmptyError, __pyx_t_5) < 0) __PYX_ERR(0, 365, __pyx_L1_error)
8216
8433
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8217
8434
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8218
8435
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8219
8436
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
8220
8437
 
8221
- /* "a_sync/exceptions.pyx":380
8438
+ /* "a_sync/exceptions.pyx":383
8222
8439
  *
8223
8440
  *
8224
8441
  * class MappingNotEmptyError(MappingError): # <<<<<<<<<<<<<<
8225
8442
  * """
8226
8443
  * Raised when a TaskMapping is not empty and an operation requires it to be empty.
8227
8444
  */
8228
- __Pyx_TraceLine(380,0,__PYX_ERR(0, 380, __pyx_L1_error))
8229
- __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_MappingError); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 380, __pyx_L1_error)
8445
+ __Pyx_TraceLine(383,0,__PYX_ERR(0, 383, __pyx_L1_error))
8446
+ __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_MappingError); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 383, __pyx_L1_error)
8230
8447
  __Pyx_GOTREF(__pyx_t_6);
8231
- __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 380, __pyx_L1_error)
8448
+ __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 383, __pyx_L1_error)
8232
8449
  __Pyx_GOTREF(__pyx_t_7);
8233
8450
  __Pyx_GIVEREF(__pyx_t_6);
8234
- if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6)) __PYX_ERR(0, 380, __pyx_L1_error);
8451
+ if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6)) __PYX_ERR(0, 383, __pyx_L1_error);
8235
8452
  __pyx_t_6 = 0;
8236
- __pyx_t_6 = __Pyx_PEP560_update_bases(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 380, __pyx_L1_error)
8453
+ __pyx_t_6 = __Pyx_PEP560_update_bases(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 383, __pyx_L1_error)
8237
8454
  __Pyx_GOTREF(__pyx_t_6);
8238
- __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 380, __pyx_L1_error)
8455
+ __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 383, __pyx_L1_error)
8239
8456
  __Pyx_GOTREF(__pyx_t_2);
8240
- __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_6, __pyx_n_s_MappingNotEmptyError, __pyx_n_s_MappingNotEmptyError, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Raised_when_a_TaskMapping_is_no); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 380, __pyx_L1_error)
8457
+ __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_6, __pyx_n_s_MappingNotEmptyError, __pyx_n_s_MappingNotEmptyError, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Raised_when_a_TaskMapping_is_no); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 383, __pyx_L1_error)
8241
8458
  __Pyx_GOTREF(__pyx_t_5);
8242
8459
  if (__pyx_t_6 != __pyx_t_7) {
8243
- if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_7) < 0))) __PYX_ERR(0, 380, __pyx_L1_error)
8460
+ if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_7) < 0))) __PYX_ERR(0, 383, __pyx_L1_error)
8244
8461
  }
8245
8462
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8246
8463
 
8247
- /* "a_sync/exceptions.pyx":397
8464
+ /* "a_sync/exceptions.pyx":400
8248
8465
  * """
8249
8466
  *
8250
8467
  * _msg = "TaskMapping already contains some data. In order to use `map`, you need a fresh one" # <<<<<<<<<<<<<<
8251
8468
  *
8252
8469
  *
8253
8470
  */
8254
- __Pyx_TraceLine(397,0,__PYX_ERR(0, 397, __pyx_L1_error))
8255
- if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_msg_2, __pyx_kp_u_TaskMapping_already_contains_som) < 0) __PYX_ERR(0, 397, __pyx_L1_error)
8471
+ __Pyx_TraceLine(400,0,__PYX_ERR(0, 400, __pyx_L1_error))
8472
+ if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_n_s_msg_2, __pyx_kp_u_TaskMapping_already_contains_som) < 0) __PYX_ERR(0, 400, __pyx_L1_error)
8256
8473
 
8257
- /* "a_sync/exceptions.pyx":380
8474
+ /* "a_sync/exceptions.pyx":383
8258
8475
  *
8259
8476
  *
8260
8477
  * class MappingNotEmptyError(MappingError): # <<<<<<<<<<<<<<
8261
8478
  * """
8262
8479
  * Raised when a TaskMapping is not empty and an operation requires it to be empty.
8263
8480
  */
8264
- __Pyx_TraceLine(380,0,__PYX_ERR(0, 380, __pyx_L1_error))
8265
- __pyx_t_7 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_MappingNotEmptyError, __pyx_t_6, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 380, __pyx_L1_error)
8481
+ __Pyx_TraceLine(383,0,__PYX_ERR(0, 383, __pyx_L1_error))
8482
+ __pyx_t_7 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_MappingNotEmptyError, __pyx_t_6, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 383, __pyx_L1_error)
8266
8483
  __Pyx_GOTREF(__pyx_t_7);
8267
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_MappingNotEmptyError, __pyx_t_7) < 0) __PYX_ERR(0, 380, __pyx_L1_error)
8484
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_MappingNotEmptyError, __pyx_t_7) < 0) __PYX_ERR(0, 383, __pyx_L1_error)
8268
8485
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8269
8486
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8270
8487
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8271
8488
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
8272
8489
 
8273
- /* "a_sync/exceptions.pyx":400
8490
+ /* "a_sync/exceptions.pyx":403
8274
8491
  *
8275
8492
  *
8276
8493
  * class PersistedTaskException(Exception): # <<<<<<<<<<<<<<
8277
8494
  * """
8278
8495
  * Raised when an exception persists in an asyncio Task.
8279
8496
  */
8280
- __Pyx_TraceLine(400,0,__PYX_ERR(0, 400, __pyx_L1_error))
8281
- __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 400, __pyx_L1_error)
8497
+ __Pyx_TraceLine(403,0,__PYX_ERR(0, 403, __pyx_L1_error))
8498
+ __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 403, __pyx_L1_error)
8282
8499
  __Pyx_GOTREF(__pyx_t_6);
8283
8500
  __Pyx_INCREF((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]));
8284
8501
  __Pyx_GIVEREF((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]));
8285
- if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])))) __PYX_ERR(0, 400, __pyx_L1_error);
8286
- __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 400, __pyx_L1_error)
8502
+ if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])))) __PYX_ERR(0, 403, __pyx_L1_error);
8503
+ __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 403, __pyx_L1_error)
8287
8504
  __Pyx_GOTREF(__pyx_t_2);
8288
- __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 400, __pyx_L1_error)
8505
+ __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 403, __pyx_L1_error)
8289
8506
  __Pyx_GOTREF(__pyx_t_5);
8290
- __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_PersistedTaskException, __pyx_n_s_PersistedTaskException, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Raised_when_an_exception_persis); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 400, __pyx_L1_error)
8507
+ __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_PersistedTaskException, __pyx_n_s_PersistedTaskException, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Raised_when_an_exception_persis); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 403, __pyx_L1_error)
8291
8508
  __Pyx_GOTREF(__pyx_t_7);
8292
8509
  if (__pyx_t_2 != __pyx_t_6) {
8293
- if (unlikely((PyDict_SetItemString(__pyx_t_7, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(0, 400, __pyx_L1_error)
8510
+ if (unlikely((PyDict_SetItemString(__pyx_t_7, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(0, 403, __pyx_L1_error)
8294
8511
  }
8295
8512
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
8296
8513
 
8297
- /* "a_sync/exceptions.pyx":417
8514
+ /* "a_sync/exceptions.pyx":420
8298
8515
  * """
8299
8516
  *
8300
8517
  * def __init__(self, exc: E, task: Task) -> None: # <<<<<<<<<<<<<<
8301
8518
  * """
8302
8519
  * Initializes the PersistedTaskException exception.
8303
8520
  */
8304
- __Pyx_TraceLine(417,0,__PYX_ERR(0, 417, __pyx_L1_error))
8305
- __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 417, __pyx_L1_error)
8521
+ __Pyx_TraceLine(420,0,__PYX_ERR(0, 420, __pyx_L1_error))
8522
+ __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 420, __pyx_L1_error)
8306
8523
  __Pyx_GOTREF(__pyx_t_6);
8307
- if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_exc, __pyx_n_s_E) < 0) __PYX_ERR(0, 417, __pyx_L1_error)
8308
- if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_task, __pyx_n_s_Task) < 0) __PYX_ERR(0, 417, __pyx_L1_error)
8309
- if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_return, __pyx_n_s_None) < 0) __PYX_ERR(0, 417, __pyx_L1_error)
8310
- __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10exceptions_22PersistedTaskException_1__init__, 0, __pyx_n_s_PersistedTaskException___init, NULL, __pyx_n_s_a_sync_exceptions, __pyx_d, ((PyObject *)__pyx_codeobj__18)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 417, __pyx_L1_error)
8524
+ if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_exc, __pyx_n_s_E) < 0) __PYX_ERR(0, 420, __pyx_L1_error)
8525
+ if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_task, __pyx_n_s_Task) < 0) __PYX_ERR(0, 420, __pyx_L1_error)
8526
+ if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_return, __pyx_n_s_None) < 0) __PYX_ERR(0, 420, __pyx_L1_error)
8527
+ __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10exceptions_22PersistedTaskException_1__init__, 0, __pyx_n_s_PersistedTaskException___init, NULL, __pyx_n_s_a_sync_exceptions, __pyx_d, ((PyObject *)__pyx_codeobj__19)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 420, __pyx_L1_error)
8311
8528
  __Pyx_GOTREF(__pyx_t_3);
8312
8529
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_6);
8313
8530
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
8314
- if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_n_s_init, __pyx_t_3) < 0) __PYX_ERR(0, 417, __pyx_L1_error)
8531
+ if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_n_s_init, __pyx_t_3) < 0) __PYX_ERR(0, 420, __pyx_L1_error)
8315
8532
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8316
8533
 
8317
- /* "a_sync/exceptions.pyx":400
8534
+ /* "a_sync/exceptions.pyx":403
8318
8535
  *
8319
8536
  *
8320
8537
  * class PersistedTaskException(Exception): # <<<<<<<<<<<<<<
8321
8538
  * """
8322
8539
  * Raised when an exception persists in an asyncio Task.
8323
8540
  */
8324
- __Pyx_TraceLine(400,0,__PYX_ERR(0, 400, __pyx_L1_error))
8325
- __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_PersistedTaskException, __pyx_t_2, __pyx_t_7, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 400, __pyx_L1_error)
8541
+ __Pyx_TraceLine(403,0,__PYX_ERR(0, 403, __pyx_L1_error))
8542
+ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_PersistedTaskException, __pyx_t_2, __pyx_t_7, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 403, __pyx_L1_error)
8326
8543
  __Pyx_GOTREF(__pyx_t_3);
8327
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_PersistedTaskException, __pyx_t_3) < 0) __PYX_ERR(0, 400, __pyx_L1_error)
8544
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_PersistedTaskException, __pyx_t_3) < 0) __PYX_ERR(0, 403, __pyx_L1_error)
8328
8545
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8329
8546
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8330
8547
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
8331
8548
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
8332
8549
 
8333
- /* "a_sync/exceptions.pyx":433
8550
+ /* "a_sync/exceptions.pyx":436
8334
8551
  *
8335
8552
  *
8336
8553
  * class EmptySequenceError(ValueError): # <<<<<<<<<<<<<<
8337
8554
  * """
8338
8555
  * Raised when an operation is attempted on an empty sequence but items are required.
8339
8556
  */
8340
- __Pyx_TraceLine(433,0,__PYX_ERR(0, 433, __pyx_L1_error))
8341
- __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_tuple__41); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 433, __pyx_L1_error)
8557
+ __Pyx_TraceLine(436,0,__PYX_ERR(0, 436, __pyx_L1_error))
8558
+ __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_tuple__43); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 436, __pyx_L1_error)
8342
8559
  __Pyx_GOTREF(__pyx_t_2);
8343
- __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 433, __pyx_L1_error)
8560
+ __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 436, __pyx_L1_error)
8344
8561
  __Pyx_GOTREF(__pyx_t_5);
8345
- __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_EmptySequenceError, __pyx_n_s_EmptySequenceError, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Raised_when_an_operation_is_att); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 433, __pyx_L1_error)
8562
+ __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_n_s_EmptySequenceError, __pyx_n_s_EmptySequenceError, (PyObject *) NULL, __pyx_n_s_a_sync_exceptions, __pyx_kp_s_Raised_when_an_operation_is_att); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 436, __pyx_L1_error)
8346
8563
  __Pyx_GOTREF(__pyx_t_7);
8347
- if (__pyx_t_2 != __pyx_tuple__41) {
8348
- if (unlikely((PyDict_SetItemString(__pyx_t_7, "__orig_bases__", __pyx_tuple__41) < 0))) __PYX_ERR(0, 433, __pyx_L1_error)
8564
+ if (__pyx_t_2 != __pyx_tuple__43) {
8565
+ if (unlikely((PyDict_SetItemString(__pyx_t_7, "__orig_bases__", __pyx_tuple__43) < 0))) __PYX_ERR(0, 436, __pyx_L1_error)
8349
8566
  }
8350
- __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_EmptySequenceError, __pyx_t_2, __pyx_t_7, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 433, __pyx_L1_error)
8567
+ __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_n_s_EmptySequenceError, __pyx_t_2, __pyx_t_7, NULL, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 436, __pyx_L1_error)
8351
8568
  __Pyx_GOTREF(__pyx_t_3);
8352
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_EmptySequenceError, __pyx_t_3) < 0) __PYX_ERR(0, 433, __pyx_L1_error)
8569
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_EmptySequenceError, __pyx_t_3) < 0) __PYX_ERR(0, 436, __pyx_L1_error)
8353
8570
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8354
8571
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
8355
8572
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
@@ -11805,7 +12022,7 @@ __Pyx_PyType_GetName(PyTypeObject* tp)
11805
12022
  if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) {
11806
12023
  PyErr_Clear();
11807
12024
  Py_XDECREF(name);
11808
- name = __Pyx_NewRef(__pyx_n_s__42);
12025
+ name = __Pyx_NewRef(__pyx_n_s__44);
11809
12026
  }
11810
12027
  return name;
11811
12028
  }