Skip to content

Commit d48d4e9

Browse files
committed
Remove pathlib.PurePath.__eq__
Fixes #10661
1 parent 454438e commit d48d4e9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

stdlib/pathlib.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class PurePath(PathLike[str]):
4646
def __new__(cls, *args: StrPath) -> Self: ...
4747

4848
def __hash__(self) -> int: ...
49-
def __eq__(self, other: object) -> bool: ...
5049
def __fspath__(self) -> str: ...
5150
def __lt__(self, other: PurePath) -> bool: ...
5251
def __le__(self, other: PurePath) -> bool: ...

test_cases/stdlib/check_pathlib.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# pyright: strict
2+
from pathlib import Path
3+
4+
if Path("asdf") == "asdf": ... # type: ignore

0 commit comments

Comments
 (0)