File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ extern "C" {
7
7
8
8
PyAPI_DATA (PyTypeObject ) PySeqIter_Type ;
9
9
PyAPI_DATA (PyTypeObject ) PyCallIter_Type ;
10
+ #ifdef Py_BUILD_CORE
11
+ extern PyTypeObject _PyAnextAwaitable_Type ;
12
+ #endif
10
13
11
14
#define PySeqIter_Check (op ) Py_IS_TYPE(op, &PySeqIter_Type)
12
15
Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ static PyAsyncMethods anextawaitable_as_async = {
333
333
0 , /* am_send */
334
334
};
335
335
336
- PyTypeObject PyAnextAwaitable_Type = {
336
+ PyTypeObject _PyAnextAwaitable_Type = {
337
337
PyVarObject_HEAD_INIT (& PyType_Type , 0 )
338
338
"anext_awaitable" , /* tp_name */
339
339
sizeof (anextawaitableobject ), /* tp_basicsize */
@@ -369,7 +369,7 @@ PyObject *
369
369
PyAnextAwaitable_New (PyObject * awaitable , PyObject * default_value )
370
370
{
371
371
anextawaitableobject * anext = PyObject_GC_New (
372
- anextawaitableobject , & PyAnextAwaitable_Type );
372
+ anextawaitableobject , & _PyAnextAwaitable_Type );
373
373
if (anext == NULL ) {
374
374
return NULL ;
375
375
}
Original file line number Diff line number Diff line change @@ -1833,6 +1833,7 @@ _PyTypes_Init(void)
1833
1833
INIT_TYPE (PyUnicode_Type );
1834
1834
INIT_TYPE (PyWrapperDescr_Type );
1835
1835
INIT_TYPE (Py_GenericAliasType );
1836
+ INIT_TYPE (_PyAnextAwaitable_Type );
1836
1837
INIT_TYPE (_PyAsyncGenASend_Type );
1837
1838
INIT_TYPE (_PyAsyncGenAThrow_Type );
1838
1839
INIT_TYPE (_PyAsyncGenWrappedValue_Type );
You can’t perform that action at this time.
0 commit comments