Skip to content

Commit

Permalink
Fix NamedSplit equality
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvillanova committed Jul 10, 2024
1 parent 7187858 commit f8976c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datasets/splits.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def __eq__(self, other):
elif isinstance(other, str): # Other should be string
return self._name == other
else:
raise ValueError(f"Equality not supported between split {self} and {other}")
return False

def __lt__(self, other):
return self._name < other._name # pylint: disable=protected-access
Expand Down

0 comments on commit f8976c1

Please sign in to comment.