-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
According to the documentation s1 - s2 returns the set of all elements that are in s1 but not in s2. So what's the point of constraining s2 elements type? I believe the correct annotation for the argument of set.__sub__ would be AbstractSet[object] rather than AbstractSet[T | None].
Line 1100 in cf9bdc2
| def __sub__(self, __s: AbstractSet[_T | None]) -> set[_T]: ... |
randolf-scholz
Metadata
Metadata
Assignees
Labels
No labels