]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 17 Jul 2021 19:14:57 +0000 (22:14 +0300)
committerGitHub <noreply@github.com>
Sat, 17 Jul 2021 19:14:57 +0000 (22:14 +0300)
commit2d055ce13250a4074f66a945381a149a3cf8c46f
tree41260fe1f80398f1bfd84517755ac2480a4d409d
parente22e8641dd277478b8df7a9fe792ea551adc6932
[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>
Include/internal/pycore_unionobject.h
Lib/test/test_types.py
Misc/NEWS.d/next/Core and Builtins/2021-07-01-11-59-34.bpo-44490.xY80VR.rst [new file with mode: 0644]
Objects/genericaliasobject.c
Objects/unionobject.c