Skip to content

Commit 4f77804

Browse files
committed
Ruff
1 parent 5f52258 commit 4f77804

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

bittensor_cli/cli.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,15 +1110,21 @@ def initialize_chain(
11101110
f"[{COLORS.G.ARG}]{', '.join(not_selected_networks)}[/{COLORS.G.ARG}]"
11111111
)
11121112

1113-
self.subtensor = SubtensorInterface(network_, use_disk_cache=use_disk_cache)
1113+
self.subtensor = SubtensorInterface(
1114+
network_, use_disk_cache=use_disk_cache
1115+
)
11141116
elif self.config["network"]:
11151117
console.print(
11161118
f"Using the specified network [{COLORS.G.LINKS}]{self.config['network']}"
11171119
f"[/{COLORS.G.LINKS}] from config"
11181120
)
1119-
self.subtensor = SubtensorInterface(self.config["network"], use_disk_cache=use_disk_cache)
1121+
self.subtensor = SubtensorInterface(
1122+
self.config["network"], use_disk_cache=use_disk_cache
1123+
)
11201124
else:
1121-
self.subtensor = SubtensorInterface(defaults.subtensor.network, use_disk_cache=use_disk_cache)
1125+
self.subtensor = SubtensorInterface(
1126+
defaults.subtensor.network, use_disk_cache=use_disk_cache
1127+
)
11221128
return self.subtensor
11231129

11241130
def _run_command(self, cmd: Coroutine, exit_early: bool = True):
@@ -1280,7 +1286,7 @@ def set_config(
12801286
"--disk-cache/--no-disk-cache",
12811287
" /--no-disk-cache",
12821288
help="Enables or disables the caching on disk. Enabling this can significantly speed up commands run "
1283-
"sequentially"
1289+
"sequentially",
12841290
),
12851291
rate_tolerance: Optional[float] = typer.Option(
12861292
None,

0 commit comments

Comments
 (0)