Skip to content

Commit

Permalink
chore(datasets): add docstring for hashable func
Browse files Browse the repository at this point in the history
Signed-off-by: Deepyaman Datta <deepyaman.datta@utexas.edu>
  • Loading branch information
deepyaman committed Oct 4, 2024
1 parent f0bd805 commit af42be8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kedro-datasets/kedro_datasets/ibis/table_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def __init__( # noqa: PLR0913
@property
def connection(self) -> BaseBackend:
def hashable(value):
"""Return a hashable key for a potentially-nested object."""
if isinstance(value, dict):
return tuple((k, hashable(v)) for k, v in sorted(value.items()))
if isinstance(value, list):
Expand Down

0 comments on commit af42be8

Please sign in to comment.