What does names: Set[str] = set() in Python code?
What does names: Set[str] = set() in Python code?
This is an initialisation with a type hint. It declares that the type of the variable names
is a set type with string values, which is initialised to an empty set (= set()
).