diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2023-05-18 22:56:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-18 22:56:15 (GMT) |
commit | b9dce3aec46bf5190400bd8239fdd4ea9e64d674 (patch) | |
tree | dc4e08c00d835d3f45b66e5be4b73df0d94ddbe3 /Objects/object.c | |
parent | 1c55e8d00728ceabd97cd1a5bd4906c9875a80c6 (diff) | |
download | cpython-b9dce3aec46bf5190400bd8239fdd4ea9e64d674.zip cpython-b9dce3aec46bf5190400bd8239fdd4ea9e64d674.tar.gz cpython-b9dce3aec46bf5190400bd8239fdd4ea9e64d674.tar.bz2 |
gh-104549: Set __module__ on TypeAliasType (#104550)
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c index f311866..ece0c5e 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -14,7 +14,7 @@ #include "pycore_pymem.h" // _PyMem_IsPtrFreed() #include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_symtable.h" // PySTEntry_Type -#include "pycore_typevarobject.h" // _PyTypeVar_Type etc., _Py_initialize_generic +#include "pycore_typevarobject.h" // _PyTypeAlias_Type, _Py_initialize_generic #include "pycore_typeobject.h" // _PyBufferWrapper_Type #include "pycore_unionobject.h" // _PyUnion_Type #include "pycore_interpreteridobject.h" // _PyInterpreterID_Type @@ -2112,6 +2112,7 @@ static PyTypeObject* static_types[] = { &_PyWeakref_CallableProxyType, &_PyWeakref_ProxyType, &_PyWeakref_RefType, + &_PyTypeAlias_Type, // subclasses: _PyTypes_FiniTypes() deallocates them before their base // class |