diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-07-17 19:14:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-17 19:14:57 (GMT) |
commit | 2d055ce13250a4074f66a945381a149a3cf8c46f (patch) | |
tree | 41260fe1f80398f1bfd84517755ac2480a4d409d /Include | |
parent | e22e8641dd277478b8df7a9fe792ea551adc6932 (diff) | |
download | cpython-2d055ce13250a4074f66a945381a149a3cf8c46f.zip cpython-2d055ce13250a4074f66a945381a149a3cf8c46f.tar.gz cpython-2d055ce13250a4074f66a945381a149a3cf8c46f.tar.bz2 |
[3.10] bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980) (GH-27207)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>.
(cherry picked from commit c45fa1a5d9b419cf13ad4b5a7cb453956495b83e)
Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_unionobject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/internal/pycore_unionobject.h b/Include/internal/pycore_unionobject.h index 4d82b6f..faa17e0 100644 --- a/Include/internal/pycore_unionobject.h +++ b/Include/internal/pycore_unionobject.h @@ -12,6 +12,9 @@ PyAPI_FUNC(PyObject *) _Py_Union(PyObject *args); PyAPI_DATA(PyTypeObject) _Py_UnionType; PyAPI_FUNC(PyObject *) _Py_union_type_or(PyObject* self, PyObject* param); +PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *); +PyObject *_Py_make_parameters(PyObject *); + #ifdef __cplusplus } #endif |