summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
authorMaggie Moss <MaggieMoss@users.noreply.github.com>2020-09-09 13:23:24 -0700
committerGitHub <noreply@github.com>2020-09-09 21:23:24 +0100
commit1b4552c5e8e925f24c15f707050f22c977171125 (patch)
tree15102b9c349e4cde9904a1eb3ec1cf3099b877bc /Lib/types.py
parentfa8c9e70104b0aef966a518eb3a80a4881906ae0 (diff)
downloadcpython-git-1b4552c5e8e925f24c15f707050f22c977171125.tar.gz
bpo-41428: Implementation for PEP 604 (GH-21515)
See https://www.python.org/dev/peps/pep-0604/ for more information. Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/types.py b/Lib/types.py
index ad2020ec69..9642e7212c 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -294,6 +294,7 @@ def coroutine(func):
GenericAlias = type(list[int])
+Union = type(int | str)
__all__ = [n for n in globals() if n[:1] != '_']