mirror of
https://github.com/python/cpython
synced 2026-09-27 02:48:20 +03:00
bpo-46470: remove unused branch from typing._remove_dups_flatten (GH-30780)
The branch was a remnant of old 3.6 typing.Union implementation.
This commit is contained in:
parent
d7c6863979
commit
c144d93631
2 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Remove unused branch from ``typing._remove_dups_flatten``
|
||||
Loading…
Add table
Add a link
Reference in a new issue