Skip to content

Commit

Permalink
[MISC] Fix linter warning re __eq__ not returning on all paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoskoukis-slamcore committed Jan 24, 2024
1 parent c849975 commit 87a2f82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uri/scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def __eq__(self, other: "SchemeLike"):
if isinstance(other, self.__class__):
return self is other

raise RuntimeError(f"Cannot compare objects - incompatible types, " f"self: {type(self)}, other: {type(other)}")

def __hash__(self) -> int:
return hash(self.name)

Expand Down

0 comments on commit 87a2f82

Please sign in to comment.