From 2b8ad9e6c5f0a66e9ca2d15f85336d8a3eefefb0 Mon Sep 17 00:00:00 2001 From: Hasan Date: Mon, 26 Jul 2021 20:00:21 +0400 Subject: bpo-44732: Rename types.Union to types.UnionType (#27342) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ɓukasz Langa Co-authored-by: Jelle Zijlstra --- Lib/types.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/types.py') 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) -- cgit v1.2.1