summaryrefslogtreecommitdiffstats
path: root/Modules/_typingmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_typingmodule.c')
-rw-r--r--Modules/_typingmodule.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/_typingmodule.c b/Modules/_typingmodule.c
index 09fbb3c..e51279c 100644
--- a/Modules/_typingmodule.c
+++ b/Modules/_typingmodule.c
@@ -5,9 +5,10 @@
#endif
#include "Python.h"
-#include "pycore_interp.h"
+#include "internal/pycore_interp.h"
+#include "internal/pycore_typevarobject.h"
+#include "internal/pycore_unionobject.h" // _PyUnion_Type
#include "pycore_pystate.h" // _PyInterpreterState_GET()
-#include "pycore_typevarobject.h"
#include "clinic/_typingmodule.c.h"
/*[clinic input]
@@ -63,6 +64,9 @@ _typing_exec(PyObject *m)
if (PyModule_AddObjectRef(m, "TypeAliasType", (PyObject *)&_PyTypeAlias_Type) < 0) {
return -1;
}
+ if (PyModule_AddObjectRef(m, "Union", (PyObject *)&_PyUnion_Type) < 0) {
+ return -1;
+ }
if (PyModule_AddObjectRef(m, "NoDefault", (PyObject *)&_Py_NoDefaultStruct) < 0) {
return -1;
}