Skip to content

Commit bcf70ef

Browse files
Relax isdisjoint method to accept Iterable[object]
Related to #15271. This prevents false positives, and it is anyhow a better match for what the runtime accepts.
1 parent d7595e2 commit bcf70ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ class frozenset(AbstractSet[_T_co]):
13031303
def copy(self) -> frozenset[_T_co]: ...
13041304
def difference(self, *s: Iterable[object]) -> frozenset[_T_co]: ...
13051305
def intersection(self, *s: Iterable[object]) -> frozenset[_T_co]: ...
1306-
def isdisjoint(self, s: Iterable[_T_co], /) -> bool: ...
1306+
def isdisjoint(self, s: Iterable[object], /) -> bool: ...
13071307
def issubset(self, s: Iterable[object], /) -> bool: ...
13081308
def issuperset(self, s: Iterable[object], /) -> bool: ...
13091309
def symmetric_difference(self, s: Iterable[_T_co], /) -> frozenset[_T_co]: ...

0 commit comments

Comments
 (0)