Add @disjoint_base to builtins.tuple (#14683)

This commit is contained in:
Jelle Zijlstra
2025-09-06 16:36:57 -07:00
committed by GitHub
parent 013cef085b
commit bf484ab320
2 changed files with 1 additions and 3 deletions
@@ -10,7 +10,6 @@ importlib.abc.PathEntryFinder.find_spec # Not defined on the actual class, but
tkinter.simpledialog.[A-Z_]+
tkinter.simpledialog.TclVersion
tkinter.simpledialog.TkVersion
builtins.tuple # should have @disjoint_base but hits pyright issue
tarfile.TarInfo.__slots__ # it's a big dictionary at runtime and the dictionary values are a bit long
+1 -2
View File
@@ -1021,8 +1021,7 @@ class slice(Generic[_StartT_co, _StopT_co, _StepT_co]):
def indices(self, len: SupportsIndex, /) -> tuple[int, int, int]: ...
# Making this a disjoint_base upsets pyright
# @disjoint_base
@disjoint_base
class tuple(Sequence[_T_co]):
def __new__(cls, iterable: Iterable[_T_co] = ..., /) -> Self: ...
def __len__(self) -> int: ...