8000 Stdlib: add many missing `__hash__` and `__eq__` methods by AlexWaygood · Pull Request #10464 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Stdlib: add many missing __hash__ and __eq__ methods #10464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

8000
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stdlib/importlib/metadata/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class EntryPoint(_EntryPointBase):
attr: str = ...,
extras: list[str] = ...,
) -> bool: ... # undocumented

def __hash__(self) -> int: ...
def __eq__(self, other: object) -> bool: ...

Expand Down
2 changes: 2 additions & 0 deletions stdlib/ipaddress.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ class _BaseV4:

class IPv4Address(_BaseV4, _BaseAddress): ...
class IPv4Network(_BaseV4, _BaseNetwork[IPv4Address]): ...

class IPv4Interface(IPv4Address, _BaseInterface[IPv4Address, IPv4Network]):
def __eq__(self, other: object) -> bool: ...
def __hash__(self) -> int: ...
Expand All @@ -171,6 +172,7 @@ class IPv6Address(_BaseV6, _BaseAddress):
if sys.version_info >= (3, 9):
@property
def scope_id(self) -> str | None: ...

def __hash__(self) -> int: ...
def __eq__(self, other: object) -> bool: ...

Expand Down
0