mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +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
|
|
@ -3090,7 +3090,7 @@ class GetUtilitiesTestCase(TestCase):
|
|||
self.assertIs(get_origin(Callable), collections.abc.Callable)
|
||||
self.assertIs(get_origin(list[int]), list)
|
||||
self.assertIs(get_origin(list), None)
|
||||
self.assertIs(get_origin(list | str), types.Union)
|
||||
self.assertIs(get_origin(list | str), types.UnionType)
|
||||
self.assertIs(get_origin(P.args), P)
|
||||
self.assertIs(get_origin(P.kwargs), P)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue