Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bpo-46470: remove unused branch from typing._remove_dups_flatten
  • Loading branch information
sobolevn committed Jan 22, 2022
commit f922116ac443e3e35c784db29d9da3dbdbedc157
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``