Skip to content

Commit

Permalink
return NotImplemented instead of False in __eq__
Browse files Browse the repository at this point in the history
  • Loading branch information
wimglenn committed Nov 10, 2023
1 parent 29e5f8e commit 5b5eb89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def dst(self, dt):

def __eq__(self, other):
if not isinstance(other, FixedTzOffset):
return False
return NotImplemented
return self._name == other._name and self._offset == other._offset


Expand Down

0 comments on commit 5b5eb89

Please sign in to comment.