Skip to content

Commit

Permalink
changing _values to frozenset to allow for hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
LckyLke committed Nov 7, 2024
1 parent 79c982d commit 208c925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion owlapy/class_expression/restriction.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def __init__(self, values: OWLIndividual | Iterable[OWLIndividual]):
else:
for _ in values:
assert isinstance(_, OWLIndividual)
self._values = {i for i in values}
self._values = frozenset(values)

def individuals(self) -> Iterable[OWLIndividual]:
"""Gets the individuals that are in the oneOf. These individuals represent the exact instances (extension)
Expand Down

0 comments on commit 208c925

Please sign in to comment.