]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44490: Add __parameters__ and __getitem__ to types.Union (GH-26980)
authorYurii Karabas <1998uriyyo@gmail.com>
Tue, 6 Jul 2021 18:04:33 +0000 (21:04 +0300)
committerGitHub <noreply@github.com>
Tue, 6 Jul 2021 18:04:33 +0000 (11:04 -0700)
commitc45fa1a5d9b419cf13ad4b5a7cb453956495b83e
treeb3bae903cc808a324c87769f0c5a60e4cd4065c8
parent8b849ea0f3482ad834e7989ff474dd5db2f295c8
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>
Include/genericaliasobject.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