@@ -1471,7 +1471,7 @@ async def get_minimum_required_stake(self):
14711471 async def get_metagraph_info (
14721472 self ,
14731473 netuid : int ,
1474- field_indexes : Optional [list ["SelectiveMetagraphIndex" ]] = None ,
1474+ field_indices : Optional [list ["SelectiveMetagraphIndex" ]] = None ,
14751475 block : Optional [int ] = None ,
14761476 block_hash : Optional [str ] = None ,
14771477 reuse_block : bool = False ,
@@ -1481,7 +1481,7 @@ async def get_metagraph_info(
14811481
14821482 Arguments:
14831483 netuid (int): The NetUID of the subnet to query.
1484- field_indexes (Optional[list[SelectiveMetagraphIndex]]): An optional list of SelectiveMetagraphIndex values
1484+ field_indices (Optional[list[SelectiveMetagraphIndex]]): An optional list of SelectiveMetagraphIndex values
14851485 specifying which fields to retrieve. If not provided, all available fields will be returned.
14861486 block: the block number at which to retrieve the hyperparameter. Do not specify if using block_hash or
14871487 reuse_block
@@ -1498,19 +1498,19 @@ async def get_metagraph_info(
14981498
14991499 partial_meta_info = subtensor.get_metagraph_info(
15001500 netuid=2,
1501- field_indexes =[SelectiveMetagraphIndex.Name, SelectiveMetagraphIndex.OwnerHotkeys]
1501+ field_indices =[SelectiveMetagraphIndex.Name, SelectiveMetagraphIndex.OwnerHotkeys]
15021502 )
15031503 """
15041504 indexes = SelectiveMetagraphIndex .all_indices ()
15051505
1506- if field_indexes :
1507- if isinstance (field_indexes , list ) and all (
1508- isinstance (f , SelectiveMetagraphIndex ) for f in field_indexes
1506+ if field_indices :
1507+ if isinstance (field_indices , list ) and all (
1508+ isinstance (f , SelectiveMetagraphIndex ) for f in field_indices
15091509 ):
1510- indexes = [f .value for f in field_indexes ]
1510+ indexes = [f .value for f in field_indices ]
15111511 else :
15121512 raise ValueError (
1513- "`field_indexes ` must be a list of SelectiveMetagraphIndex items."
1513+ "`field_indices ` must be a list of SelectiveMetagraphIndex items."
15141514 )
15151515
15161516 block_hash = await self .determine_block_hash (block , block_hash , reuse_block )
0 commit comments