mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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 2b8ad9e6c5
)
Co-authored-by: Hasan <hasan.aleeyev@gmail.com>
This commit is contained in:
parent
16a174f7ba
commit
8a37e8cf45
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