@@ -549,7 +549,7 @@ def get_all_subnets_info(self, block: Optional[int] = None) -> list["SubnetInfo"
549549 else :
550550 return SubnetInfo .list_from_vec_u8 (hex_to_bytes (hex_bytes_result ))
551551
552- def get_balance (self , address : str , block : Optional [int ] = None ) -> " Balance" :
552+ def get_balance (self , address : str , block : Optional [int ] = None ) -> Balance :
553553 """
554554 Retrieves the balance for given coldkey.
555555
@@ -574,7 +574,7 @@ def get_balances(
574574 self ,
575575 * addresses : str ,
576576 block : Optional [int ] = None ,
577- ) -> dict [str , " Balance" ]:
577+ ) -> dict [str , Balance ]:
578578 """
579579 Retrieves the balance for given coldkey(s)
580580
@@ -905,7 +905,7 @@ def get_delegate_take(
905905
906906 def get_delegated (
907907 self , coldkey_ss58 : str , block : Optional [int ] = None
908- ) -> list [tuple ["DelegateInfo" , " Balance" ]]:
908+ ) -> list [tuple ["DelegateInfo" , Balance ]]:
909909 """
910910 Retrieves a list of delegates and their associated stakes for a given coldkey. This function identifies the
911911 delegates that a specific account has staked tokens on.
@@ -954,9 +954,7 @@ def get_delegates(self, block: Optional[int] = None) -> list["DelegateInfo"]:
954954 else :
955955 return []
956956
957- def get_existential_deposit (
958- self , block : Optional [int ] = None
959- ) -> Optional ["Balance" ]:
957+ def get_existential_deposit (self , block : Optional [int ] = None ) -> Optional [Balance ]:
960958 """
961959 Retrieves the existential deposit amount for the Bittensor blockchain.
962960 The existential deposit is the minimum amount of TAO required for an account to exist on the blockchain.
@@ -1012,7 +1010,7 @@ def get_hotkey_owner(
10121010 hotkey_owner = val if exists else None
10131011 return hotkey_owner
10141012
1015- def get_minimum_required_stake (self ) -> " Balance" :
1013+ def get_minimum_required_stake (self ) -> Balance :
10161014 """
10171015 Returns the minimum required stake for nominators in the Subtensor network.
10181016 This method retries the substrate call up to three times with exponential backoff in case of failures.
@@ -1353,7 +1351,7 @@ def get_subnets(self, block: Optional[int] = None) -> list[int]:
13531351
13541352 def get_total_stake_for_coldkey (
13551353 self , ss58_address : str , block : Optional [int ] = None
1356- ) -> " Balance" :
1354+ ) -> Balance :
13571355 """
13581356 Returns the total stake held on a coldkey.
13591357
@@ -1374,7 +1372,7 @@ def get_total_stake_for_coldkey(
13741372
13751373 def get_total_stake_for_coldkeys (
13761374 self , * ss58_addresses : str , block : Optional [int ] = None
1377- ) -> dict [str , " Balance" ]:
1375+ ) -> dict [str , Balance ]:
13781376 """
13791377 Returns the total stake held on multiple coldkeys.
13801378
@@ -1406,7 +1404,7 @@ def get_total_stake_for_coldkeys(
14061404
14071405 def get_total_stake_for_hotkey (
14081406 self , ss58_address : str , block : Optional [int ] = None
1409- ) -> " Balance" :
1407+ ) -> Balance :
14101408 """
14111409 Returns the total stake held on a hotkey.
14121410
@@ -1427,7 +1425,7 @@ def get_total_stake_for_hotkey(
14271425
14281426 def get_total_stake_for_hotkeys (
14291427 self , * ss58_addresses : str , block : Optional [int ] = None
1430- ) -> dict [str , " Balance" ]:
1428+ ) -> dict [str , Balance ]:
14311429 """
14321430 Returns the total stake held on hotkeys.
14331431
@@ -1468,8 +1466,8 @@ def get_total_subnets(self, block: Optional[int] = None) -> Optional[int]:
14681466 return getattr (result , "value" , None )
14691467
14701468 def get_transfer_fee (
1471- self , wallet : "Wallet" , dest : str , value : Union [" Balance" , float , int ]
1472- ) -> " Balance" :
1469+ self , wallet : "Wallet" , dest : str , value : Union [Balance , float , int ]
1470+ ) -> Balance :
14731471 """
14741472 Calculates the transaction fee for transferring tokens from a wallet to a specified destination address. This
14751473 function simulates the transfer to estimate the associated cost, taking into account the current network
@@ -1875,9 +1873,7 @@ def neurons_lite(
18751873 hex_bytes_result = self .query_runtime_api (
18761874 runtime_api = "NeuronInfoRuntimeApi" ,
18771875 method = "get_neurons_lite" ,
1878- params = [
1879- netuid
1880- ], # TODO check to see if this can accept more than one at a time
1876+ params = [netuid ],
18811877 block = block ,
18821878 )
18831879
@@ -1917,7 +1913,7 @@ def query_identity(self, key: str, block: Optional[int] = None) -> dict:
19171913 except TypeError :
19181914 return {}
19191915
1920- def recycle (self , netuid : int , block : Optional [int ] = None ) -> Optional [" Balance" ]:
1916+ def recycle (self , netuid : int , block : Optional [int ] = None ) -> Optional [Balance ]:
19211917 """
19221918 Retrieves the 'Burn' hyperparameter for a specified subnet. The 'Burn' parameter represents the amount of Tao
19231919 that is effectively recycled within the Bittensor network.
@@ -2766,7 +2762,7 @@ def transfer(
27662762 self ,
27672763 wallet : "Wallet" ,
27682764 dest : str ,
2769- amount : Union [ " Balance" , float ] ,
2765+ amount : Balance ,
27702766 wait_for_inclusion : bool = True ,
27712767 wait_for_finalization : bool = False ,
27722768 transfer_all : bool = False ,
0 commit comments