Skip to content

Commit 12297af

Browse files
committed
Ruff
1 parent bbaf299 commit 12297af

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bittensor/core/async_subtensor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def __init__(
158158
retry_forever=retry_forever,
159159
_mock=_mock,
160160
archive_endpoints=archive_endpoints,
161-
ws_shutdown_timer=websocket_shutdown_timer
161+
ws_shutdown_timer=websocket_shutdown_timer,
162162
)
163163
if self.log_verbose:
164164
logging.info(
@@ -298,7 +298,7 @@ def _get_substrate(
298298
retry_forever: bool = False,
299299
_mock: bool = False,
300300
archive_endpoints: Optional[list[str]] = None,
301-
ws_shutdown_timer: float = 5.0
301+
ws_shutdown_timer: float = 5.0,
302302
) -> Union[AsyncSubstrateInterface, RetryAsyncSubstrate]:
303303
"""Creates the Substrate instance based on provided arguments.
304304
@@ -327,7 +327,7 @@ def _get_substrate(
327327
chain_name="Bittensor",
328328
_mock=_mock,
329329
archive_nodes=archive_endpoints,
330-
ws_shutdown_timer=ws_shutdown_timer
330+
ws_shutdown_timer=ws_shutdown_timer,
331331
)
332332
return AsyncSubstrateInterface(
333333
url=self.chain_endpoint,
@@ -336,7 +336,7 @@ def _get_substrate(
336336
use_remote_preset=True,
337337
chain_name="Bittensor",
338338
_mock=_mock,
339-
ws_shutdown_timer=ws_shutdown_timer
339+
ws_shutdown_timer=ws_shutdown_timer,
340340
)
341341

342342
# Subtensor queries ===========================================================================================

bittensor/core/subtensor_api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(
8080
log_verbose: bool = False,
8181
mock: bool = False,
8282
archive_endpoints: Optional[list[str]] = None,
83-
websocket_shutdown_timer: float = 5.0
83+
websocket_shutdown_timer: float = 5.0,
8484
):
8585
self.network = network
8686
self._fallback_endpoints = fallback_endpoints
@@ -128,7 +128,7 @@ def _get_subtensor(self) -> Union["_Subtensor", "_AsyncSubtensor"]:
128128
retry_forever=self._retry_forever,
129129
_mock=self._mock,
130130
archive_endpoints=self._archive_endpoints,
131-
websocket_shutdown_timer=self._ws_shutdown_timer
131+
websocket_shutdown_timer=self._ws_shutdown_timer,
132132
)
133133
self.initialize = _subtensor.initialize
134134
return _subtensor

0 commit comments

Comments
 (0)