File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -1545,7 +1545,9 @@ async def get_minimum_required_stake(self):
1545
1545
async def get_metagraph_info (
1546
1546
self ,
1547
1547
netuid : int ,
1548
- field_indices : Optional [list ["SelectiveMetagraphIndex" ]] = None ,
1548
+ field_indices : Optional [
1549
+ Union [list ["SelectiveMetagraphIndex" ], list [int ]]
1550
+ ] = None ,
1549
1551
block : Optional [int ] = None ,
1550
1552
block_hash : Optional [str ] = None ,
1551
1553
reuse_block : bool = False ,
@@ -1555,8 +1557,8 @@ async def get_metagraph_info(
1555
1557
1556
1558
Arguments:
1557
1559
netuid: The NetUID of the subnet to query.
1558
- field_indices: An optional list of SelectiveMetagraphIndex values specifying which fields to retrieve. If
1559
- not provided, all available fields will be returned.
1560
+ field_indices: An optional list of SelectiveMetagraphIndex or int values specifying which fields to retrieve.
1561
+ If not provided, all available fields will be returned.
1560
1562
block: the block number at which to retrieve the hyperparameter. Do not specify if using block_hash or
1561
1563
reuse_block
1562
1564
block_hash: The hash of blockchain block number for the query. Do not specify if using
Original file line number Diff line number Diff line change @@ -1194,16 +1194,18 @@ def get_minimum_required_stake(self) -> Balance:
1194
1194
def get_metagraph_info (
1195
1195
self ,
1196
1196
netuid : int ,
1197
- field_indices : Optional [list [Union ["SelectiveMetagraphIndex" , int ]]] = None ,
1197
+ field_indices : Optional [
1198
+ Union [list ["SelectiveMetagraphIndex" ], list [int ]]
1199
+ ] = None ,
1198
1200
block : Optional [int ] = None ,
1199
1201
) -> Optional [MetagraphInfo ]:
1200
1202
"""
1201
1203
Retrieves full or partial metagraph information for the specified subnet (netuid).
1202
1204
1203
1205
Arguments:
1204
1206
netuid: The NetUID of the subnet to query.
1205
- field_indices: An optional list of SelectiveMetagraphIndex values specifying which fields to retrieve. If
1206
- not provided, all available fields will be returned.
1207
+ field_indices: An optional list of SelectiveMetagraphIndex or int values specifying which fields to retrieve.
1208
+ If not provided, all available fields will be returned.
1207
1209
block: The block number at which to query the data. If not specified, the current block or one determined
1208
1210
via reuse_block or block_hash will be used.
1209
1211
You can’t perform that action at this time.
0 commit comments