Skip to content

Commit c144d93

Browse files
authored
bpo-46470: remove unused branch from typing._remove_dups_flatten (GH-30780)
The branch was a remnant of old 3.6 typing.Union implementation.
1 parent d7c6863 commit c144d93

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Lib/typing.py

-2
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,6 @@ def _remove_dups_flatten(parameters):
280280
for p in parameters:
281281
if isinstance(p, (_UnionGenericAlias, types.UnionType)):
282282
params.extend(p.__args__)
283-
elif isinstance(p, tuple) and len(p) > 0 and p[0] is Union:
284-
params.extend(p[1:])
285283
else:
286284
params.append(p)
287285

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove unused branch from ``typing._remove_dups_flatten``

0 commit comments

Comments
 (0)