Skip to content

Commit

Permalink
Solution2
Browse files Browse the repository at this point in the history
  • Loading branch information
chiper9 committed Feb 4, 2025
1 parent 18c4ece commit 945c490
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,5 @@ def __ge__(self, other: int | float) -> bool:
return self.km >= other.km
elif isinstance(other, (int, float)):
return self.km >= other
raise (
TypeError(f"Unsupported operand type(s): "
f"'Distance' and {type(other)}")
)
raise (TypeError(f"Unsupported operand type(s): "
f"'Distance' and {type(other)}"))

0 comments on commit 945c490

Please sign in to comment.