mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-11 18:32:29 +08:00
Fix dunder-method positional-only parameter discrepancies in third-party stubs (#14529)
This commit is contained in:
+24
-24
@@ -83,29 +83,29 @@ class Value:
|
||||
def __index__(self) -> int: ...
|
||||
def __int__(self) -> int: ...
|
||||
def __float__(self) -> float: ...
|
||||
def __add__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __radd__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __sub__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __rsub__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __mul__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __rmul__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __truediv__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __rtruediv__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __mod__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __rmod__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __pow__(self, other: _ValueOrNative, mod: None = None) -> Value: ...
|
||||
def __and__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __or__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __xor__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __lshift__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __rshift__(self, other: _ValueOrNative) -> Value: ...
|
||||
def __eq__(self, other: _ValueOrNative) -> bool: ... # type: ignore[override]
|
||||
def __ne__(self, other: _ValueOrNative) -> bool: ... # type: ignore[override]
|
||||
def __lt__(self, other: _ValueOrNative) -> bool: ...
|
||||
def __le__(self, other: _ValueOrNative) -> bool: ...
|
||||
def __gt__(self, other: _ValueOrNative) -> bool: ...
|
||||
def __ge__(self, other: _ValueOrNative) -> bool: ...
|
||||
def __getitem__(self, key: int | str | Field) -> Value: ...
|
||||
def __add__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __radd__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __sub__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __rsub__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __mul__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __rmul__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __truediv__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __rtruediv__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __mod__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __rmod__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __pow__(self, other: _ValueOrNative, mod: None = None, /) -> Value: ...
|
||||
def __and__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __or__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __xor__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __lshift__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __rshift__(self, other: _ValueOrNative, /) -> Value: ...
|
||||
def __eq__(self, other: _ValueOrNative, /) -> bool: ... # type: ignore[override]
|
||||
def __ne__(self, other: _ValueOrNative, /) -> bool: ... # type: ignore[override]
|
||||
def __lt__(self, other: _ValueOrNative, /) -> bool: ...
|
||||
def __le__(self, other: _ValueOrNative, /) -> bool: ...
|
||||
def __gt__(self, other: _ValueOrNative, /) -> bool: ...
|
||||
def __ge__(self, other: _ValueOrNative, /) -> bool: ...
|
||||
def __getitem__(self, key: int | str | Field, /) -> Value: ...
|
||||
def __call__(self, *args: _ValueOrNative) -> Value: ...
|
||||
def __init__(self, val: _ValueOrNative) -> None: ...
|
||||
def cast(self, type: Type) -> Value: ...
|
||||
@@ -175,7 +175,7 @@ class Type(Mapping[str, Field]):
|
||||
def get(self, key: str, default: Any = ...) -> Field | Any: ...
|
||||
def has_key(self, key: str) -> bool: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __getitem__(self, key: str) -> Field: ...
|
||||
def __getitem__(self, key: str, /) -> Field: ...
|
||||
def __iter__(self) -> TypeIterator[str]: ...
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
Reference in New Issue
Block a user