mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
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>
This commit is contained in:
parent
3e5b82ed7e
commit
2b8ad9e6c5
7 changed files with 22 additions and 22 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue