mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-04 09:02:46 +08:00
stdlib: Add many missing dunder overrides (#7231)
This commit is contained in:
@@ -189,6 +189,8 @@ class Signature:
|
||||
@classmethod
|
||||
def from_callable(cls: type[Self], obj: Callable[..., Any], *, follow_wrapped: bool = ...) -> Self: ...
|
||||
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
def get_annotations(
|
||||
obj: Callable[..., Any] | type[Any] | ModuleType,
|
||||
@@ -235,6 +237,7 @@ class Parameter:
|
||||
default: Any = ...,
|
||||
annotation: Any = ...,
|
||||
) -> Self: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
class BoundArguments:
|
||||
arguments: OrderedDict[str, Any]
|
||||
@@ -243,6 +246,7 @@ class BoundArguments:
|
||||
signature: Signature
|
||||
def __init__(self, signature: Signature, arguments: OrderedDict[str, Any]) -> None: ...
|
||||
def apply_defaults(self) -> None: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
#
|
||||
# Classes and functions
|
||||
|
||||
Reference in New Issue
Block a user