Stdlib: add many missing __hash__ and __eq__ methods (#10464)

This commit is contained in:
Alex Waygood authored and GitHub committed 2023-07-17 14:21:02 +02:00
1 parent a04822051f
commit 03b4bb9cce
22 files changed
+78 -2

No files matched your search

+2
View File
@@ -18,6 +18,7 @@ class ContextVar(Generic[_T]):
def __init__(self, name: str) -> None: ...
@overload
def __init__(self, name: str, *, default: _T) -> None: ...
def __hash__(self) -> int: ...
@property
def name(self) -> str: ...
@overload
@@ -60,3 +61,4 @@ class Context(Mapping[ContextVar[Any], Any]):
def __getitem__(self, __key: ContextVar[_T]) -> _T: ...
def __iter__(self) -> Iterator[ContextVar[Any]]: ...
def __len__(self) -> int: ...
def __eq__(self, __value: object) -> bool: ...