mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-44654: Refactor and clean up the union type implementation (GH-27196)
This commit is contained in:
parent
f88e138a1a
commit
0fd27375ca
9 changed files with 88 additions and 125 deletions
|
@ -11,7 +11,7 @@
|
|||
#include "pycore_pymem.h" // _PyMem_IsPtrFreed()
|
||||
#include "pycore_pystate.h" // _PyThreadState_GET()
|
||||
#include "pycore_symtable.h" // PySTEntry_Type
|
||||
#include "pycore_unionobject.h" // _Py_UnionType
|
||||
#include "pycore_unionobject.h" // _PyUnion_Type
|
||||
#include "frameobject.h"
|
||||
#include "interpreteridobject.h"
|
||||
|
||||
|
@ -1878,7 +1878,7 @@ _PyTypes_Init(void)
|
|||
INIT_TYPE(_PyWeakref_CallableProxyType);
|
||||
INIT_TYPE(_PyWeakref_ProxyType);
|
||||
INIT_TYPE(_PyWeakref_RefType);
|
||||
INIT_TYPE(_Py_UnionType);
|
||||
INIT_TYPE(_PyUnion_Type);
|
||||
|
||||
return _PyStatus_OK();
|
||||
#undef INIT_TYPE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue