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
+38 -38
View File
@@ -78,18 +78,18 @@ class EnumValueDescriptor:
@final
class ExtensionDict:
def __contains__(self, other) -> bool: ...
def __delitem__(self, other) -> None: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self, other: object) -> bool: ...
def __getitem__(self, index): ...
def __gt__(self, other: object) -> bool: ...
def __contains__(self, other, /) -> bool: ...
def __delitem__(self, other, /) -> None: ...
def __eq__(self, other: object, /) -> bool: ...
def __ge__(self, other: object, /) -> bool: ...
def __getitem__(self, index, /): ...
def __gt__(self, other: object, /) -> bool: ...
def __iter__(self): ...
def __le__(self, other: object) -> bool: ...
def __le__(self, other: object, /) -> bool: ...
def __len__(self) -> int: ...
def __lt__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def __setitem__(self, index, object) -> None: ...
def __lt__(self, other: object, /) -> bool: ...
def __ne__(self, other: object, /) -> bool: ...
def __setitem__(self, index, object, /) -> None: ...
@final
class ExtensionIterator:
@@ -201,16 +201,16 @@ class Message:
def SetInParent(self): ...
def UnknownFields(self): ...
def WhichOneof(self, object, /): ...
def __contains__(self, other) -> bool: ...
def __contains__(self, other, /) -> bool: ...
def __deepcopy__(self, memo=None): ...
def __delattr__(self, name): ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self, other: object) -> bool: ...
def __gt__(self, other: object) -> bool: ...
def __le__(self, other: object) -> bool: ...
def __lt__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def __setattr__(self, name, value): ...
def __delattr__(self, name, /): ...
def __eq__(self, other: object, /) -> bool: ...
def __ge__(self, other: object, /) -> bool: ...
def __gt__(self, other: object, /) -> bool: ...
def __le__(self, other: object, /) -> bool: ...
def __lt__(self, other: object, /) -> bool: ...
def __ne__(self, other: object, /) -> bool: ...
def __setattr__(self, name, value, /): ...
@final
class MessageMeta(type): ...
@@ -253,16 +253,16 @@ class RepeatedCompositeContainer:
def reverse(self): ...
def sort(self, *args, **kwargs): ... # incomplete
def __deepcopy__(self, memo=None): ...
def __delitem__(self, other) -> None: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self, other: object) -> bool: ...
def __getitem__(self, index): ...
def __gt__(self, other: object) -> bool: ...
def __le__(self, other: object) -> bool: ...
def __delitem__(self, other, /) -> None: ...
def __eq__(self, other: object, /) -> bool: ...
def __ge__(self, other: object, /) -> bool: ...
def __getitem__(self, index, /): ...
def __gt__(self, other: object, /) -> bool: ...
def __le__(self, other: object, /) -> bool: ...
def __len__(self) -> int: ...
def __lt__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def __setitem__(self, index, object) -> None: ...
def __lt__(self, other: object, /) -> bool: ...
def __ne__(self, other: object, /) -> bool: ...
def __setitem__(self, index, object, /) -> None: ...
@final
class RepeatedScalarContainer:
@@ -276,17 +276,17 @@ class RepeatedScalarContainer:
def reverse(self): ...
def sort(self, *args, **kwargs): ... # incomplete
def __deepcopy__(self, memo=None): ...
def __delitem__(self, other) -> None: ...
def __eq__(self, other: object) -> bool: ...
def __ge__(self, other: object) -> bool: ...
def __getitem__(self, index): ...
def __gt__(self, other: object) -> bool: ...
def __le__(self, other: object) -> bool: ...
def __delitem__(self, other, /) -> None: ...
def __eq__(self, other: object, /) -> bool: ...
def __ge__(self, other: object, /) -> bool: ...
def __getitem__(self, index, /): ...
def __gt__(self, other: object, /) -> bool: ...
def __le__(self, other: object, /) -> bool: ...
def __len__(self) -> int: ...
def __lt__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def __lt__(self, other: object, /) -> bool: ...
def __ne__(self, other: object, /) -> bool: ...
def __reduce__(self): ...
def __setitem__(self, index, object) -> None: ...
def __setitem__(self, index, object, /) -> None: ...
@final
class ServiceDescriptor:
@@ -304,7 +304,7 @@ class ServiceDescriptor:
@final
class UnknownFieldSet:
def __init__(self, *args, **kwargs) -> None: ... # incomplete
def __getitem__(self, index): ...
def __getitem__(self, index, /): ...
def __len__(self) -> int: ...
def SetAllowOversizeProtos(object, /): ... # incomplete