Skip to content

Commit

Permalink
style: updating deprecated Hashable reference.
Browse files Browse the repository at this point in the history
Signed-off-by: Ubuntu <[email protected]>
  • Loading branch information
drugilsberg committed Jul 21, 2023
1 parent 57b903b commit 6a794ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gt4sd/algorithms/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def sample(self, number_of_items: int = 100) -> Iterator[S]:
try:
valid_item = self.configuration.validate_item(item)
# check if sample is hashable
if not isinstance(item, collections.Hashable):
if not isinstance(item, collections.abc.Hashable):
yield valid_item
item_set.add(str(index))
else:
Expand Down

0 comments on commit 6a794ba

Please sign in to comment.