summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2022-04-20 14:10:41 (GMT)
committerGitHub <noreply@github.com>2022-04-20 14:10:41 (GMT)
commitf571c26fc1805790cacb73e70cbb0291204d41e7 (patch)
treed77bf567738a2def3efc0a8f85b7145e723cb443 /Objects/object.c
parentf92bcfe6dea7d52dcc7077585d8818e8a0209604 (diff)
downloadcpython-f571c26fc1805790cacb73e70cbb0291204d41e7.zip
cpython-f571c26fc1805790cacb73e70cbb0291204d41e7.tar.gz
cpython-f571c26fc1805790cacb73e70cbb0291204d41e7.tar.bz2
gh-91632: Fix generic_alias_iterator to be finalized at exit. (GH-91727)
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 8adb506..29880f6 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1834,6 +1834,7 @@ _PyTypes_InitState(PyInterpreterState *interp)
#ifdef MS_WINDOWS
extern PyTypeObject PyHKEY_Type;
#endif
+extern PyTypeObject _Py_GenericAliasIterType;
static PyTypeObject* static_types[] = {
// The two most important base types: must be initialized first and
@@ -1923,6 +1924,7 @@ static PyTypeObject* static_types[] = {
&_PyAsyncGenWrappedValue_Type,
&_PyContextTokenMissing_Type,
&_PyCoroWrapper_Type,
+ &_Py_GenericAliasIterType,
&_PyHamtItems_Type,
&_PyHamtKeys_Type,
&_PyHamtValues_Type,