Last active
September 30, 2024 10:10
-
-
Save wanderingstan/4b8ae84dd77eadf716b012f2a5e74790 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The set has the following signature for the __sub__ method:
def __sub__(self, __value: AbstractSet[_T | None]) -> set[_T]:
We can instead use an iterator directly from the visited list
difference(*s: Iterable[Any]) -> set[str]