(items: List[str])
return [seen.setdefault(x, x) for x in items if x not in seen]
Remove all duplicates from ``items`` (keeping order)
Remove all duplicates from ``items`` (keeping order)
Remove all duplicates from items ( keeping order )
def dedupe(items: List[str]) -> List[str]:
    """Remove all duplicates from ``items`` (keeping order)"""
    seen = {}  # type: Dict[str, str]
    return [seen.setdefault(x, x) for x in items if x not in seen]
def dedupe ( items : List [ str ] ) -> List [ str ] : seen = { } # type: Dict[str, str] return [ seen . setdefault ( x , x ) for x in items if x not in seen ]