stdlib: Add many missing dunder overrides (#7231)

This commit is contained in:
Alex Waygood
2022-02-16 14:25:47 +00:00
committed by GitHub
parent 409beea616
commit fbc279e3f5
28 changed files with 62 additions and 6 deletions

View File

@@ -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