Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bittensor_cli/src/bittensor/chain_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _chr_str(codes: tuple[int]) -> str:
return "".join(map(chr, codes))


def process_nested(data: Union[tuple, dict], chr_transform):
def process_nested(data: Union[tuple, dict], chr_transform) -> list:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, but look at the fn. The return type is list | dict | None, not list. Furthermore, list of what?

"""Processes nested data structures by applying a transformation function to their elements."""
if isinstance(data, (list, tuple)):
if len(data) > 0 and isinstance(data[0], dict):
Expand Down