Skip to content

Commit

Permalink
Merge pull request #141 from turutcrane/fix-infinite-call-in-sort-of-…
Browse files Browse the repository at this point in the history
…PathEntry

Fix infinte call in sort of PathEntry
  • Loading branch information
matteius committed May 31, 2023
2 parents ec7bf08 + ed42739 commit e775df6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pythonfinder/models/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ def __gt__(self, other) -> bool:
def __gte__(self, other) -> bool:
return self.path.as_posix() >= other.path.as_posix()

def __eq__(self, other) -> bool:
return self.path.as_posix() == other.path.as_posix()

def which(self, name) -> PathEntry | None:
"""Search in this path for an executable.
Expand Down

0 comments on commit e775df6

Please sign in to comment.