We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 044a495 commit a4707f8Copy full SHA for a4707f8
bittensor/core/chain_data/metagraph_info.py
@@ -25,7 +25,7 @@ def _chr_str(codes: tuple[int]) -> str:
25
def process_nested(data: Union[tuple, dict], chr_transform):
26
"""Processes nested data structures by applying a transformation function to their elements."""
27
if isinstance(data, (list, tuple)):
28
- if len(data) > 0 and isinstance(data[0], dict):
+ if len(data) > 0:
29
return [
30
{k: chr_transform(v) for k, v in item.items()}
31
if item is not None
0 commit comments