55import webbrowser
66import netaddr
77from dataclasses import asdict , is_dataclass
8- from typing import Any , Dict , List
8+ from typing import Any
99from pywry import PyWry
1010
1111from bittensor_cli .src .bittensor .balances import Balance
@@ -149,7 +149,7 @@ def get_identity(
149149
150150async def fetch_subnet_data (
151151 wallet : Wallet , subtensor : "SubtensorInterface"
152- ) -> Dict [str , Any ]:
152+ ) -> dict [str , Any ]:
153153 """
154154 Fetch subnet data from the network.
155155 """
@@ -187,7 +187,7 @@ async def fetch_subnet_data(
187187 }
188188
189189
190- def process_subnet_data (raw_data : Dict [str , Any ]) -> Dict [str , Any ]:
190+ def process_subnet_data (raw_data : dict [str , Any ]) -> dict [str , Any ]:
191191 """
192192 Process and prepare subnet data.
193193 """
@@ -206,7 +206,7 @@ def process_subnet_data(raw_data: Dict[str, Any]) -> Dict[str, Any]:
206206 total_slippage_value = Balance .from_tao (0 )
207207
208208 # Process stake
209- stake_dict : Dict [int , List [ Dict [str , Any ]]] = {}
209+ stake_dict : dict [int , list [ dict [str , Any ]]] = {}
210210 for stake in stake_info :
211211 if stake .stake .tao > 0 :
212212 slippage_value , _ , slippage_percentage = pool_info [
@@ -367,7 +367,7 @@ def _has_exited(handler) -> bool:
367367 )
368368
369369
370- def generate_full_page (data : Dict [str , Any ]) -> str :
370+ def generate_full_page (data : dict [str , Any ]) -> str :
371371 """
372372 Generate full HTML content for the interface.
373373 """
@@ -673,7 +673,7 @@ def generate_neuron_details() -> str:
673673 """
674674
675675
676- def generate_main_header (wallet_info : Dict [str , Any ], block_number : int ) -> str :
676+ def generate_main_header (wallet_info : dict [str , Any ], block_number : int ) -> str :
677677 truncated_coldkey = f"{ wallet_info ['coldkey' ][:6 ]} ...{ wallet_info ['coldkey' ][- 6 :]} "
678678
679679 # Calculate slippage percentage
@@ -746,7 +746,7 @@ def generate_main_filters() -> str:
746746 """
747747
748748
749- def generate_subnets_table (subnets : List [ Dict [str , Any ]]) -> str :
749+ def generate_subnets_table (subnets : list [ dict [str , Any ]]) -> str :
750750 rows = []
751751 for subnet in subnets :
752752 total_your_stake = sum (stake ["amount" ] for stake in subnet ["your_stakes" ])
0 commit comments