Skip to content

Commit

Permalink
Revert == / hash overrides: let str behavior win.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Nov 1, 2024
1 parent 4e4641a commit 00c5692
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pex/cache/dirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,6 @@ def __init__(
# type: (...) -> None
self.path = path

def __eq__(self, other):
# type: (Any) -> bool
return type(self) == type(other) and self.path == other.path

def __hash__(self):
# type: () -> int
return hash(self.path)

def __repr__(self):
# type: () -> str
return "{clazz}(path={path})".format(clazz=self.__class__.__name__, path=self.path)
Expand Down

0 comments on commit 00c5692

Please sign in to comment.