From bcf70ef814e37ff5b9b978194f6120e5cde585a2 Mon Sep 17 00:00:00 2001 From: Thanos <111999343+Sachaa-Thanasius@users.noreply.github.com> Date: Fri, 6 Feb 2026 14:30:17 -0500 Subject: [PATCH] Relax isdisjoint method to accept Iterable[object] Related to python/typeshed#15271. This prevents false positives, and it is anyhow a better match for what the runtime accepts. --- stdlib/builtins.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index efc51fe257ae..0ed9a5a4e0d3 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -1303,7 +1303,7 @@ class frozenset(AbstractSet[_T_co]): def copy(self) -> frozenset[_T_co]: ... def difference(self, *s: Iterable[object]) -> frozenset[_T_co]: ... def intersection(self, *s: Iterable[object]) -> frozenset[_T_co]: ... - def isdisjoint(self, s: Iterable[_T_co], /) -> bool: ... + def isdisjoint(self, s: Iterable[object], /) -> bool: ... def issubset(self, s: Iterable[object], /) -> bool: ... def issuperset(self, s: Iterable[object], /) -> bool: ... def symmetric_difference(self, s: Iterable[_T_co], /) -> frozenset[_T_co]: ...