summaryrefslogtreecommitdiffstats
path: root/Lib/types.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-07-26 19:02:58 (GMT)
committerGitHub <noreply@github.com>2021-07-26 19:02:58 (GMT)
commit8a37e8cf45105fbb592c31ebd30501bbdea5ab81 (patch)
treeefed9f23223fb796e924fd2ea0ea7d2add7b878a /Lib/types.py
parent16a174f7bac481ff6f859179b30a74d867747137 (diff)
downloadcpython-8a37e8cf45105fbb592c31ebd30501bbdea5ab81.zip
cpython-8a37e8cf45105fbb592c31ebd30501bbdea5ab81.tar.gz
cpython-8a37e8cf45105fbb592c31ebd30501bbdea5ab81.tar.bz2
bpo-44732: Rename types.Union to types.UnionType (GH-27342)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 2b8ad9e6c5f0a66e9ca2d15f85336d8a3eefefb0) Co-authored-by: Hasan <hasan.aleeyev@gmail.com>
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/types.py b/Lib/types.py
index c509b24..c2dc97d 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -297,9 +297,8 @@ def coroutine(func):
return wrapped
-
GenericAlias = type(list[int])
-Union = type(int | str)
+UnionType = type(int | str)
EllipsisType = type(Ellipsis)
NoneType = type(None)