Skip to content

Commit 8d9d071

Browse files
committed
typing: Remove an unused function
Leftover from python#105511 I believe. GitHub code search found no usages other than copies of typing.py and lists of stdlib functions.
1 parent 1e3ec33 commit 8d9d071

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Lib/typing.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -363,18 +363,6 @@ def _deduplicate_unhashable(unhashable_params):
363363
new_unhashable.append(t)
364364
return new_unhashable
365365

366-
def _compare_args_orderless(first_args, second_args):
367-
first_unhashable = _deduplicate_unhashable(first_args)
368-
second_unhashable = _deduplicate_unhashable(second_args)
369-
t = list(second_unhashable)
370-
try:
371-
for elem in first_unhashable:
372-
t.remove(elem)
373-
except ValueError:
374-
return False
375-
return not t
376-
377-
378366
def _flatten_literal_params(parameters):
379367
"""Internal helper for Literal creation: flatten Literals among parameters."""
380368
params = []

0 commit comments

Comments
 (0)