mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add __hash__ for a bunch of types that set it to None (#13286)
This commit is contained in:
@@ -167,6 +167,7 @@ class Address:
|
||||
def __init__(
|
||||
self, display_name: str = "", username: str | None = "", domain: str | None = "", addr_spec: str | None = None
|
||||
) -> None: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
class Group:
|
||||
@@ -175,4 +176,5 @@ class Group:
|
||||
@property
|
||||
def addresses(self) -> tuple[Address, ...]: ...
|
||||
def __init__(self, display_name: str | None = None, addresses: Iterable[Address] | None = None) -> None: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user