File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -986,11 +986,11 @@ async def get_parents(
986
986
storage function to get the children and formats them before returning as a tuple.
987
987
988
988
Arguments:
989
- hotkey (str) : The child hotkey SS58.
990
- netuid (int) : The netuid value.
991
- block (Optional[int]) : The block number for which the children are to be retrieved.
992
- block_hash (Optional[str]) : The hash of the block to retrieve the subnet unique identifiers from.
993
- reuse_block (bool) : Whether to reuse the last-used block hash.
989
+ hotkey: The child hotkey SS58.
990
+ netuid: The netuid value.
991
+ block: The block number for which the children are to be retrieved.
992
+ block_hash: The hash of the block to retrieve the subnet unique identifiers from.
993
+ reuse_block: Whether to reuse the last-used block hash.
994
994
995
995
Returns:
996
996
A list of formatted parents [(proportion, parent)]
@@ -1011,8 +1011,8 @@ async def get_parents(
1011
1011
normalized_proportion = u64_normalized_float (proportion )
1012
1012
formatted_parents .append ((normalized_proportion , formatted_child ))
1013
1013
return formatted_parents
1014
- else :
1015
- return []
1014
+
1015
+ return []
1016
1016
1017
1017
async def get_children (
1018
1018
self ,
Original file line number Diff line number Diff line change @@ -759,9 +759,9 @@ def get_parents(
759
759
storage function to get the children and formats them before returning as a tuple.
760
760
761
761
Arguments:
762
- hotkey (str) : The child hotkey SS58.
763
- netuid (int) : The netuid.
764
- block (Optional[int]) : The block number for which the children are to be retrieved.
762
+ hotkey: The child hotkey SS58.
763
+ netuid: The netuid.
764
+ block: The block number for which the children are to be retrieved.
765
765
766
766
Returns:
767
767
A list of formatted parents [(proportion, parent)]
@@ -780,8 +780,8 @@ def get_parents(
780
780
normalized_proportion = u64_normalized_float (proportion )
781
781
formatted_parents .append ((normalized_proportion , formatted_child ))
782
782
return formatted_parents
783
- else :
784
- return []
783
+
784
+ return []
785
785
786
786
def get_children (
787
787
self , hotkey : str , netuid : int , block : Optional [int ] = None
You can’t perform that action at this time.
0 commit comments