mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
gh-106320: Remove _PyAnextAwaitable_Type from the public C API (#108597)
It's not needed to declare it in Include/iterobject.h: just use "extern" where it's used (only in object.c).
This commit is contained in:
parent
39506ee565
commit
301eb7e607
4 changed files with 7 additions and 10 deletions
|
|
@ -2049,11 +2049,12 @@ _PyObject_InitState(PyInterpreterState *interp)
|
|||
}
|
||||
|
||||
|
||||
extern PyTypeObject _Py_GenericAliasIterType;
|
||||
extern PyTypeObject _PyMemoryIter_Type;
|
||||
extern PyTypeObject _PyLineIterator;
|
||||
extern PyTypeObject _PyPositionsIterator;
|
||||
extern PyTypeObject _PyAnextAwaitable_Type;
|
||||
extern PyTypeObject _PyLegacyEventHandler_Type;
|
||||
extern PyTypeObject _PyLineIterator;
|
||||
extern PyTypeObject _PyMemoryIter_Type;
|
||||
extern PyTypeObject _PyPositionsIterator;
|
||||
extern PyTypeObject _Py_GenericAliasIterType;
|
||||
|
||||
static PyTypeObject* static_types[] = {
|
||||
// The two most important base types: must be initialized first and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue