summaryrefslogtreecommitdiffstats
path: root/Include/genericaliasobject.h
diff options
context:
space:
mode:
authorYurii Karabas <1998uriyyo@gmail.com>2021-07-06 18:04:33 (GMT)
committerGitHub <noreply@github.com>2021-07-06 18:04:33 (GMT)
commitc45fa1a5d9b419cf13ad4b5a7cb453956495b83e (patch)
treeb3bae903cc808a324c87769f0c5a60e4cd4065c8 /Include/genericaliasobject.h
parent8b849ea0f3482ad834e7989ff474dd5db2f295c8 (diff)
downloadcpython-c45fa1a5d9b419cf13ad4b5a7cb453956495b83e.zip
cpython-c45fa1a5d9b419cf13ad4b5a7cb453956495b83e.tar.gz
cpython-c45fa1a5d9b419cf13ad4b5a7cb453956495b83e.tar.bz2
bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Diffstat (limited to 'Include/genericaliasobject.h')
-rw-r--r--Include/genericaliasobject.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/genericaliasobject.h b/Include/genericaliasobject.h
index cf00297..4ce9244 100644
--- a/Include/genericaliasobject.h
+++ b/Include/genericaliasobject.h
@@ -5,6 +5,11 @@
extern "C" {
#endif
+#ifndef Py_LIMITED_API
+PyAPI_FUNC(PyObject *) _Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
+PyAPI_FUNC(PyObject *) _Py_make_parameters(PyObject *);
+#endif
+
PyAPI_FUNC(PyObject *) Py_GenericAlias(PyObject *, PyObject *);
PyAPI_DATA(PyTypeObject) Py_GenericAliasType;