diff options
author | Yurii Karabas <1998uriyyo@gmail.com> | 2021-07-06 18:04:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-06 18:04:33 (GMT) |
commit | c45fa1a5d9b419cf13ad4b5a7cb453956495b83e (patch) | |
tree | b3bae903cc808a324c87769f0c5a60e4cd4065c8 /Include/genericaliasobject.h | |
parent | 8b849ea0f3482ad834e7989ff474dd5db2f295c8 (diff) | |
download | cpython-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.h | 5 |
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; |