Skip to content

Commit 6918241

Browse files
authored
Merge pull request #572 from opentensor/feat/thewhaleking/support-click-8.2
Allows for typer>=0.16 and Click 8.2+
2 parents 5cc5b68 + 2d82c63 commit 6918241

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

bittensor_cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def edit_help(cls, option_name: str, help_text: str):
250250
True,
251251
"--prompt/--no-prompt",
252252
" /--yes",
253-
"--prompt/--no_prompt",
253+
" /--no_prompt",
254254
" /-y",
255255
help="Enable or disable interactive prompts.",
256256
)

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ dependencies = [
1818
"async-substrate-interface>=1.4.2",
1919
"aiohttp~=3.10.2",
2020
"backoff~=2.2.1",
21-
"click<8.2.0", # typer.testing.CliRunner(mix_stderr=) is broken in click 8.2.0+
2221
"GitPython>=3.0.0",
2322
"netaddr~=1.3.0",
2423
"numpy>=2.0.1,<3.0.0",
@@ -27,7 +26,7 @@ dependencies = [
2726
"PyYAML~=6.0.1",
2827
"rich>=13.7,<15.0",
2928
"scalecodec==1.2.11",
30-
"typer>=0.12,<0.16",
29+
"typer>=0.16",
3130
"bittensor-wallet>=3.0.7",
3231
"plotille>=5.0.0",
3332
"plotly>=6.0.0",

tests/e2e_tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def exec_command(
5555
extra_args.extend(["--network", "ws://127.0.0.1:9945"])
5656

5757
# Capture stderr separately from stdout
58-
runner = CliRunner(mix_stderr=False)
58+
runner = CliRunner()
5959
# Prepare the command arguments
6060
args = [
6161
command,

0 commit comments

Comments
 (0)