mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-104549: Set __module__ on TypeAliasType (#104550)
This commit is contained in:
parent
1c55e8d007
commit
b9dce3aec4
9 changed files with 93 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue