mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-20 07:00:29 +08:00
Fix dunder-method positional-only parameter discrepancies in third-party stubs (#14529)
This commit is contained in:
@@ -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