Skip to content

Remove pathlib.PurePath.__eq__ #10662

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
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion stdlib/pathlib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class PurePath(PathLike[str]):
def __new__(cls, *args: StrPath) -> Self: ...

def __hash__(self) -> int: ...
def __eq__(self, other: object) -> bool: ...
def __fspath__(self) -> str: ...
def __lt__(self, other: PurePath) -> bool: ...
def __le__(self, other: PurePath) -> bool: ...
Expand Down
7 changes: 7 additions & 0 deletions test_cases/stdlib/check_pathlib.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# pyright: strict
from __future__ import annotations

from pathlib import Path

if Path("asdf") == "asdf": # type: ignore
...