Skip to content

Commit 0e55d3a

Browse files
authored
Merge pull request #2864 from opentensor/fix/roman/stakes-to-staking
`🥩s` to `staking`
2 parents d0197d8 + bf018e6 commit 0e55d3a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

bittensor/core/subtensor_api/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .metagraphs import Metagraphs as _Metagraphs
1010
from .neurons import Neurons as _Neurons
1111
from .queries import Queries as _Queries
12-
from .stakes import Stakes as _Stakes
12+
from .staking import Staking as _Staking
1313
from .subnets import Subnets as _Subnets
1414
from .utils import add_legacy_methods as _add_classic_fields
1515
from .wallets import Wallets as _Wallets
@@ -221,9 +221,9 @@ def queries(self):
221221
return _Queries(self._subtensor)
222222

223223
@property
224-
def stakes(self):
225-
"""Property to access stakes methods."""
226-
return _Stakes(self._subtensor)
224+
def staking(self):
225+
"""Property to access staking methods."""
226+
return _Staking(self._subtensor)
227227

228228
@property
229229
def subnets(self):

bittensor/core/subtensor_api/stakes.py renamed to bittensor/core/subtensor_api/staking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from bittensor.core.async_subtensor import AsyncSubtensor as _AsyncSubtensor
44

55

6-
class Stakes:
7-
"""Class for managing stake operations."""
6+
class Staking:
7+
"""Class for managing staking operations."""
88

99
def __init__(self, subtensor: Union["_Subtensor", "_AsyncSubtensor"]):
1010
self.add_stake = subtensor.add_stake

tests/unit_tests/test_subtensor_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_properties_methods_comparable(other_class: "Subtensor" = None):
2929
]
3030
neurons_methods = [m for m in dir(subtensor_api.neurons) if not m.startswith("_")]
3131
queries_methods = [m for m in dir(subtensor_api.queries) if not m.startswith("_")]
32-
stakes_methods = [m for m in dir(subtensor_api.stakes) if not m.startswith("_")]
32+
stakes_methods = [m for m in dir(subtensor_api.staking) if not m.startswith("_")]
3333
subnets_methods = [m for m in dir(subtensor_api.subnets) if not m.startswith("_")]
3434
wallets_methods = [m for m in dir(subtensor_api.wallets) if not m.startswith("_")]
3535

0 commit comments

Comments
 (0)