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
+16 -14
View File
@@ -62,30 +62,32 @@ class Lib:
@final
class _CDataBase:
__name__: ClassVar[str]
def __add__(self, other): ...
def __add__(self, other, /): ...
def __bool__(self) -> bool: ...
def __call__(self, *args, **kwargs): ...
def __complex__(self) -> complex: ...
def __delitem__(self, other) -> None: ...
def __delitem__(self, other, /) -> None: ...
def __dir__(self): ...
def __enter__(self): ...
def __eq__(self, other): ...
def __exit__(self, type: type[BaseException] | None, value: BaseException | None, traceback: types.TracebackType | None): ...
def __eq__(self, other, /): ...
def __exit__(
self, type: type[BaseException] | None, value: BaseException | None, traceback: types.TracebackType | None, /
): ...
def __float__(self) -> float: ...
def __ge__(self, other): ...
def __getitem__(self, index: SupportsIndex | slice): ...
def __gt__(self, other): ...
def __ge__(self, other, /): ...
def __getitem__(self, index: SupportsIndex | slice, /): ...
def __gt__(self, other, /): ...
def __hash__(self) -> int: ...
def __int__(self) -> int: ...
def __iter__(self): ...
def __le__(self, other): ...
def __le__(self, other, /): ...
def __len__(self) -> int: ...
def __lt__(self, other): ...
def __ne__(self, other): ...
def __radd__(self, other): ...
def __rsub__(self, other): ...
def __setitem__(self, index: SupportsIndex | slice, object) -> None: ...
def __sub__(self, other): ...
def __lt__(self, other, /): ...
def __ne__(self, other, /): ...
def __radd__(self, other, /): ...
def __rsub__(self, other, /): ...
def __setitem__(self, index: SupportsIndex | slice, object, /) -> None: ...
def __sub__(self, other, /): ...
@final
class buffer: