MCPcopy Index your code
hub / github.com/python/mypy / dedup

Function dedup

mypy/suggestions.py:1063–1068  ·  view source on GitHub ↗
(old: list[T])

Source from the content-addressed store, hash-verified

1061
1062
1063def dedup(old: list[T]) -> list[T]:
1064 new: list[T] = []
1065 for x in old:
1066 if x not in new:
1067 new.append(x)
1068 return new

Callers 1

suggest_callsitesMethod · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…