Skip to content

Commit

Permalink
bpo-46470: remove unused branch from typing._remove_dups_flatten (G…
Browse files Browse the repository at this point in the history
…H-30780)

The branch was a remnant of old 3.6 typing.Union implementation.
  • Loading branch information
sobolevn committed Jan 24, 2022
1 parent d7c6863 commit c144d93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions Lib/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,6 @@ def _remove_dups_flatten(parameters):
for p in parameters:
if isinstance(p, (_UnionGenericAlias, types.UnionType)):
params.extend(p.__args__)
elif isinstance(p, tuple) and len(p) > 0 and p[0] is Union:
params.extend(p[1:])
else:
params.append(p)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove unused branch from ``typing._remove_dups_flatten``

0 comments on commit c144d93

Please sign in to comment.