Skip to content

Commit

Permalink
Docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
schustmi committed Dec 5, 2024
1 parent 27769b0 commit 91664b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/zenml/models/v2/base/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,8 +1093,10 @@ def _define_uuid_filter(
Returns:
A Filter object.
Raises:
ValueError: If the value for a oneof filter is not a list.
"""
# For equality checks, ensure that the value is a valid UUID.
if operator == GenericFilterOps.ONEOF and not isinstance(value, list):
raise ValueError(ONEOF_ERROR)

Expand Down

0 comments on commit 91664b2

Please sign in to comment.