Fix dunder-method positional-only parameter discrepancies in third-party stubs (#14529)

This commit is contained in:
Brian Schubert
2025-08-08 12:12:44 +02:00
committed by GitHub
parent 2e3203fdff
commit 11907e2825
11 changed files with 113 additions and 99 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ class ResultRow:
def __len__(self) -> int: ...
@overload
def __getitem__(self, index: int) -> Any: ...
def __getitem__(self, index: int, /) -> Any: ...
@overload
def __getitem__(self, index: slice) -> Sequence[Any]: ...
def __getitem__(self, index: slice, /) -> Sequence[Any]: ...
def __iter__(self) -> Iterator[Any]: ...
# __next__, __delitem__, __setitem__ are technically defined but lead always to an error