summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2023-05-18 22:56:15 (GMT)
committerGitHub <noreply@github.com>2023-05-18 22:56:15 (GMT)
commitb9dce3aec46bf5190400bd8239fdd4ea9e64d674 (patch)
treedc4e08c00d835d3f45b66e5be4b73df0d94ddbe3 /Include
parent1c55e8d00728ceabd97cd1a5bd4906c9875a80c6 (diff)
downloadcpython-b9dce3aec46bf5190400bd8239fdd4ea9e64d674.zip
cpython-b9dce3aec46bf5190400bd8239fdd4ea9e64d674.tar.gz
cpython-b9dce3aec46bf5190400bd8239fdd4ea9e64d674.tar.bz2
gh-104549: Set __module__ on TypeAliasType (#104550)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_global_objects.h1
-rw-r--r--Include/internal/pycore_typevarobject.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/Include/internal/pycore_global_objects.h b/Include/internal/pycore_global_objects.h
index 40cc04d..5a3fb13 100644
--- a/Include/internal/pycore_global_objects.h
+++ b/Include/internal/pycore_global_objects.h
@@ -75,7 +75,6 @@ struct _Py_interp_cached_objects {
PyTypeObject *paramspec_type;
PyTypeObject *paramspecargs_type;
PyTypeObject *paramspeckwargs_type;
- PyTypeObject *typealias_type;
};
#define _Py_INTERP_STATIC_OBJECT(interp, NAME) \
diff --git a/Include/internal/pycore_typevarobject.h b/Include/internal/pycore_typevarobject.h
index 2035e47..c9fa97d 100644
--- a/Include/internal/pycore_typevarobject.h
+++ b/Include/internal/pycore_typevarobject.h
@@ -16,6 +16,8 @@ extern PyObject *_Py_subscript_generic(PyThreadState *, PyObject *);
extern int _Py_initialize_generic(PyInterpreterState *);
extern void _Py_clear_generic_types(PyInterpreterState *);
+extern PyTypeObject _PyTypeAlias_Type;
+
#ifdef __cplusplus
}
#endif