Skip to content

Commit 3e7cc71

Browse files
edit docstrings
1 parent 5ba0adf commit 3e7cc71

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

bittensor/core/async_subtensor.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ async def get_revealed_commitment_by_hotkey(
15731573
Arguments:
15741574
netuid: The unique identifier of the subnetwork.
15751575
block: The block number to retrieve the commitment from. Default is `None`.
1576-
hotkey_ss58_address (str): The ss58 address of the committee member.
1576+
hotkey_ss58_address: The ss58 address of the committee member.
15771577
block_hash: The hash of the block to retrieve the subnet unique identifiers from.
15781578
reuse_block: Whether to reuse the last-used block hash.
15791579
@@ -1855,7 +1855,7 @@ async def get_delegates(
18551855
18561856
Arguments:
18571857
block: The blockchain block number for the query.
1858-
block_hash (Optional[str]): hash of the blockchain block number for the query.
1858+
block_hash: hash of the blockchain block number for the query.
18591859
reuse_block (Optional[bool]): whether to reuse the last-used block hash.
18601860
18611861
Returns:
@@ -1887,7 +1887,7 @@ async def get_existential_deposit(
18871887
18881888
Arguments:
18891889
block: The blockchain block number for the query.
1890-
block_hash (str): Block hash at which to query the deposit amount. If `None`, the current block is used.
1890+
block_hash: Block hash at which to query the deposit amount. If `None`, the current block is used.
18911891
reuse_block: Whether to reuse the last-used blockchain block hash.
18921892
18931893
Returns:
@@ -1923,10 +1923,10 @@ async def get_hotkey_owner(
19231923
specified block hash, it returns None.
19241924
19251925
Arguments:
1926-
hotkey_ss58 (str): The SS58 address of the hotkey.
1927-
block (Optional[int]): The blockchain block number for the query.
1928-
block_hash (Optional[str]): The hash of the block at which to check the hotkey ownership.
1929-
reuse_block (bool): Whether to reuse the last-used blockchain hash.
1926+
hotkey_ss58: The SS58 address of the hotkey.
1927+
block: The blockchain block number for the query.
1928+
block_hash: The hash of the block at which to check the hotkey ownership.
1929+
reuse_block: Whether to reuse the last-used blockchain hash.
19301930
19311931
Returns:
19321932
Optional[str]: The SS58 address of the owner if the hotkey exists, or None if it doesn't.
@@ -2059,9 +2059,9 @@ async def get_all_metagraphs_info(
20592059
Arguments:
20602060
block: the block number at which to retrieve the hyperparameter. Do not specify if using block_hash or
20612061
reuse_block
2062-
block_hash (Optional[str]): The hash of blockchain block number for the query. Do not specify if using
2062+
block_hash: The hash of blockchain block number for the query. Do not specify if using
20632063
block or reuse_block
2064-
reuse_block (bool): Whether to reuse the last-used block hash. Do not set if using block_hash or block.
2064+
reuse_block: Whether to reuse the last-used block hash. Do not set if using block_hash or block.
20652065
20662066
Returns:
20672067
MetagraphInfo dataclass
@@ -2093,7 +2093,7 @@ async def get_netuids_for_hotkey(
20932093
Arguments:
20942094
hotkey_ss58: The `SS58` address of the neuron's hotkey.
20952095
block: The blockchain block number for the query.
2096-
block_hash (Optional[str]): The hash of the blockchain block number at which to perform the query.
2096+
block_hash: The hash of the blockchain block number at which to perform the query.
20972097
reuse_block (Optional[bool]): Whether to reuse the last-used block hash when retrieving info.
20982098
20992099
Returns:
@@ -2490,10 +2490,10 @@ async def get_stake(
24902490
hotkey_ss58: The SS58 address of the hotkey.
24912491
coldkey_ss58 (str): The SS58 address of the coldkey.
24922492
netuid: The subnet ID.
2493-
block (Optional[int]): The block number at which to query the stake information.
2494-
block_hash (Optional[str]): The hash of the block to retrieve the stake from. Do not specify if using block
2493+
block: The block number at which to query the stake information.
2494+
block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
24952495
or reuse_block
2496-
reuse_block (bool): Whether to use the last-used block. Do not set if using block_hash or block.
2496+
reuse_block: Whether to use the last-used block. Do not set if using block_hash or block.
24972497
24982498
Returns:
24992499
Balance: The stake under the coldkey - hotkey pairing.
@@ -2579,9 +2579,9 @@ async def get_subnet_info(
25792579
Arguments:
25802580
netuid: The unique identifier of the subnet.
25812581
block: The blockchain block number for the query.
2582-
block_hash (Optional[str]): The hash of the block to retrieve the stake from. Do not specify if using block
2582+
block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
25832583
or reuse_block
2584-
reuse_block (bool): Whether to use the last-used block. Do not set if using block_hash or block.
2584+
reuse_block: Whether to use the last-used block. Do not set if using block_hash or block.
25852585
25862586
Returns:
25872587
SubnetInfo: A SubnetInfo objects, each containing detailed information about a subnet.
@@ -2613,9 +2613,9 @@ async def get_subnet_price(
26132613
Arguments:
26142614
netuid: The unique identifier of the subnet.
26152615
block: The blockchain block number for the query.
2616-
block_hash (Optional[str]): The hash of the block to retrieve the stake from. Do not specify if using block
2616+
block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
26172617
or reuse_block
2618-
reuse_block (bool): Whether to use the last-used block. Do not set if using block_hash or block.
2618+
reuse_block: Whether to use the last-used block. Do not set if using block_hash or block.
26192619
26202620
Returns:
26212621
The current Alpha price in TAO units for the specified subnet.
@@ -2648,9 +2648,9 @@ async def get_subnet_prices(
26482648
26492649
Args:
26502650
block: The blockchain block number for the query.
2651-
block_hash (Optional[str]): The hash of the block to retrieve the stake from. Do not specify if using block
2651+
block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
26522652
or reuse_block
2653-
reuse_block (bool): Whether to use the last-used block. Do not set if using block_hash or block.
2653+
reuse_block: Whether to use the last-used block. Do not set if using block_hash or block.
26542654
26552655
Returns:
26562656
dict:
@@ -2771,10 +2771,10 @@ async def get_stake_for_coldkey_and_hotkey(
27712771
coldkey_ss58 (str): The SS58 address of the coldkey.
27722772
hotkey_ss58: The SS58 address of the hotkey.
27732773
netuids (Optional[list[int]]): The subnet IDs to query for. Set to `None` for all subnets.
2774-
block (Optional[int]): The block number at which to query the stake information.
2775-
block_hash (Optional[str]): The hash of the block to retrieve the stake from. Do not specify if using block
2774+
block: The block number at which to query the stake information.
2775+
block_hash: The hash of the block to retrieve the stake from. Do not specify if using block
27762776
or reuse_block
2777-
reuse_block (bool): Whether to use the last-used block. Do not set if using block_hash or block.
2777+
reuse_block: Whether to use the last-used block. Do not set if using block_hash or block.
27782778
27792779
Returns:
27802780
A {netuid: StakeInfo} pairing of all stakes across all subnets.
@@ -2816,7 +2816,7 @@ async def get_stake_for_coldkey(
28162816
28172817
Arguments:
28182818
coldkey_ss58 (str): The SS58 address of the coldkey.
2819-
block (Optional[int]): The block number at which to query the stake information.
2819+
block: The block number at which to query the stake information.
28202820
block_hash: The hash of the blockchain block number for the query.
28212821
reuse_block: Whether to reuse the last-used block hash.
28222822
@@ -3072,7 +3072,7 @@ async def get_vote_data(
30723072
Arguments:
30733073
proposal_hash (str): The hash of the proposal for which voting data is requested.
30743074
block: The blockchain block number for the query.
3075-
block_hash (Optional[str]): The hash of the blockchain block number to query the voting data.
3075+
block_hash: The hash of the blockchain block number to query the voting data.
30763076
reuse_block: Whether to reuse the last-used blockchain block hash.
30773077
30783078
Returns:
@@ -3110,7 +3110,7 @@ async def get_uid_for_hotkey_on_subnet(
31103110
hotkey_ss58: The `SS58` address of the neuron's hotkey.
31113111
netuid: The unique identifier of the subnet.
31123112
block: The blockchain block number for the query.
3113-
block_hash (Optional[str]): The blockchain block_hash representation of the block id.
3113+
block_hash: The blockchain block_hash representation of the block id.
31143114
reuse_block: Whether to reuse the last-used blockchain block hash.
31153115
31163116
Returns:
@@ -3146,8 +3146,8 @@ async def filter_netuids_by_registered_hotkeys(
31463146
filter_for_netuids (Iterable[int]): A subset of all_netuids to filter from the main list.
31473147
all_hotkeys (Iterable[Wallet]): Hotkeys to filter from the main list.
31483148
block: The blockchain block number for the query.
3149-
block_hash (str): hash of the blockchain block number at which to perform the query.
3150-
reuse_block (bool): whether to reuse the last-used blockchain hash when retrieving info.
3149+
block_hash: hash of the blockchain block number at which to perform the query.
3150+
reuse_block: whether to reuse the last-used blockchain hash when retrieving info.
31513151
31523152
Returns:
31533153
The filtered list of netuids.
@@ -3201,7 +3201,7 @@ async def immunity_period(
32013201
Arguments:
32023202
netuid: The unique identifier of the subnet.
32033203
block: The blockchain block number for the query.
3204-
block_hash (Optional[str]): The blockchain block_hash representation of the block id.
3204+
block_hash: The blockchain block_hash representation of the block id.
32053205
reuse_block: Whether to reuse the last-used blockchain block hash.
32063206
32073207
Returns:
@@ -3962,7 +3962,7 @@ async def weights_rate_limit(
39623962
Arguments:
39633963
netuid: The unique identifier of the subnetwork.
39643964
block: The blockchain block number for the query.
3965-
block_hash (Optional[str]): The blockchain block_hash representation of the block id.
3965+
block_hash: The blockchain block_hash representation of the block id.
39663966
reuse_block: Whether to reuse the last-used blockchain block hash.
39673967
39683968
Returns:
@@ -4779,7 +4779,7 @@ async def root_register(
47794779
47804780
Arguments:
47814781
wallet (bittensor_wallet.Wallet): Bittensor wallet instance.
4782-
block_hash (Optional[str]): This argument will be removed in Bittensor v10
4782+
block_hash: This argument will be removed in Bittensor v10
47834783
wait_for_inclusion (bool): Waits for the transaction to be included in a block. Default is ``False``.
47844784
wait_for_finalization (bool): Waits for the transaction to be finalized on the blockchain. Default is
47854785
``False``.

0 commit comments

Comments
 (0)