Skip to content

Commit 04d4c42

Browse files
author
Roman
committed
move add_args
1 parent b470d78 commit 04d4c42

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bittensor/core/subtensor_api/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ def __init__(
8888

8989
# define empty fields
9090
self.substrate = self._subtensor.substrate
91-
self.add_args = self._subtensor.add_args
9291
self.chain_endpoint = self._subtensor.chain_endpoint
9392
self.close = self._subtensor.close
9493
self.config = self._subtensor.config
@@ -156,6 +155,10 @@ async def __aenter__(self):
156155
async def __aexit__(self, exc_type, exc_val, exc_tb):
157156
await self.substrate.close()
158157

158+
@classmethod
159+
def add_args(cls, parser):
160+
_Subtensor.add_args(parser)
161+
159162
@property
160163
def block(self):
161164
"""Returns current chain block number."""

0 commit comments

Comments
 (0)