diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-07-26 19:02:58 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-26 19:02:58 (GMT) |
| commit | 8a37e8cf45105fbb592c31ebd30501bbdea5ab81 (patch) | |
| tree | efed9f23223fb796e924fd2ea0ea7d2add7b878a /Lib/test/test_typing.py | |
| parent | 16a174f7bac481ff6f859179b30a74d867747137 (diff) | |
| download | cpython-8a37e8cf45105fbb592c31ebd30501bbdea5ab81.zip cpython-8a37e8cf45105fbb592c31ebd30501bbdea5ab81.tar.gz cpython-8a37e8cf45105fbb592c31ebd30501bbdea5ab81.tar.bz2 | |
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 2b8ad9e6c5f0a66e9ca2d15f85336d8a3eefefb0)
Co-authored-by: Hasan <hasan.aleeyev@gmail.com>
Diffstat (limited to 'Lib/test/test_typing.py')
| -rw-r--r-- | Lib/test/test_typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 8cbbe62..f79675b 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -3084,7 +3084,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) |
