mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 08:58:44 +08:00
Fix dunder-method positional-only parameter discrepancies in third-party stubs (#14529)
This commit is contained in:
1 parent
2e3203fdff
commit
11907e2825
11 files changed
+113
-99
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user