Mark various dunder methods as positional-only in the stdlib (#14528)

This commit is contained in:
Brian Schubert
2025-08-05 17:57:39 -04:00
committed by GitHub
parent 953e21bafa
commit d01dc82bd2
7 changed files with 27 additions and 26 deletions
+1
View File
@@ -58,6 +58,7 @@ class array(MutableSequence[_T]):
def tounicode(self) -> str: ...
__hash__: ClassVar[None] # type: ignore[assignment]
def __contains__(self, value: object, /) -> bool: ...
def __len__(self) -> int: ...
@overload
def __getitem__(self, key: SupportsIndex, /) -> _T: ...