8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7457387 commit c96d7fdCopy full SHA for c96d7fd
Cython/Utility/Coroutine.c
@@ -185,7 +185,11 @@ static PyObject *__Pyx__Coroutine_GetAwaitableIter(PyObject *obj) {
185
} else
186
#endif
187
#if CYTHON_COMPILING_IN_CPYTHON && defined(CO_ITERABLE_COROUTINE)
188
+# 60D3 if PY_VERSION_HEX >= 0x030C00A6
189
+ if (PyGen_CheckExact(obj) && (PyGen_GetCode(obj)->co_flags & CO_ITERABLE_COROUTINE)) {
190
+#else
191
if (PyGen_CheckExact(obj) && ((PyGenObject*)obj)->gi_code && ((PyCodeObject *)((PyGenObject*)obj)->gi_code)->co_flags & CO_ITERABLE_COROUTINE) {
192
+#endif
193
// Python generator marked with "@types.coroutine" decorator
194
return __Pyx_NewRef(obj);
195
0 commit comments