MCPcopy
hub / github.com/pytest-dev/pytest / deduplicate_names

Function deduplicate_names

src/_pytest/fixtures.py:1677–1680  ·  view source on GitHub ↗

De-duplicate the sequence of names while keeping the original order.

(*seqs: Iterable[str])

Source from the content-addressed store, hash-verified

1675
1676
1677def deduplicate_names(*seqs: Iterable[str]) -> tuple[str, ...]:
1678 """De-duplicate the sequence of names while keeping the original order."""
1679 # Ideally we would use a set, but it does not preserve insertion order.
1680 return tuple(dict.fromkeys(name for seq in seqs for name in seq))
1681
1682
1683class FixtureManager:

Callers 2

test_deduplicate_namesFunction · 0.90
getfixtureinfoMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_deduplicate_namesFunction · 0.72