mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Improve __reduce__ signature accross stdlib (#7182)
This commit is contained in:
@@ -145,7 +145,7 @@ class Decimal:
|
||||
def rotate(self, other: _Decimal, context: Context | None = ...) -> Decimal: ...
|
||||
def scaleb(self, other: _Decimal, context: Context | None = ...) -> Decimal: ...
|
||||
def shift(self, other: _Decimal, context: Context | None = ...) -> Decimal: ...
|
||||
def __reduce__(self) -> tuple[type[Decimal], tuple[str]]: ...
|
||||
def __reduce__(self: Self) -> tuple[type[Self], tuple[str]]: ...
|
||||
def __copy__(self: Self) -> Self: ...
|
||||
def __deepcopy__(self: Self, __memo: Any) -> Self: ...
|
||||
def __format__(self, __specifier: str, __context: Context | None = ...) -> str: ...
|
||||
@@ -183,7 +183,7 @@ class Context:
|
||||
# __setattr__() only allows to set a specific set of attributes,
|
||||
# already defined above.
|
||||
def __delattr__(self, __name: str) -> None: ...
|
||||
def __reduce__(self) -> tuple[type[Context], tuple[Any, ...]]: ...
|
||||
def __reduce__(self: Self) -> tuple[type[Self], tuple[Any, ...]]: ...
|
||||
def clear_flags(self) -> None: ...
|
||||
def clear_traps(self) -> None: ...
|
||||
def copy(self) -> Context: ...
|
||||
|
||||
Reference in New Issue
Block a user