diff options
| author | Hasan <hasan.aleeyev@gmail.com> | 2021-07-26 20:00:21 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-26 18:00:21 +0200 |
| commit | 2b8ad9e6c5f0a66e9ca2d15f85336d8a3eefefb0 (patch) | |
| tree | 40f917eb11c9ce8faf3fabd4d6ed25308c7b34ca /Lib/types.py | |
| parent | 3e5b82ed7e26e76948f514f3e3b25b441573bbdb (diff) | |
| download | cpython-git-2b8ad9e6c5f0a66e9ca2d15f85336d8a3eefefb0.tar.gz | |
bpo-44732: Rename types.Union to types.UnionType (#27342)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Lib/types.py')
| -rw-r--r-- | Lib/types.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/types.py b/Lib/types.py index c665e6f861..ce1c28d562 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) |
