Skip to content

Commit 42602df

Browse files
Relax isdisjoint method to accept Iterable[object]
Related to python/typeshed#15721. This is a better match for what the runtime accepts and prevents false positives.
1 parent d7595e2 commit 42602df

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)