Skip to content

Commit 6f2dba4

Browse files
authored
Update click to >8.2.0
The was previously blocked by removed support of Python 3.9, but we have since dropped support as well: dd227cd Closes #1024
1 parent 4da36ff commit 6f2dba4

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dependencies = [
4444
[dependency-groups]
4545
dev = [
4646
"build",
47-
"click<8.2.0", # https://github.com/simonw/llm/issues/1024
47+
"click>=8.2.0",
4848
"pytest",
4949
"numpy",
5050
"pytest-httpx>=0.33.0",

tests/test_cli_openai_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,15 +487,15 @@ def test_gpt4o_mini_sync_and_async(monkeypatch, tmpdir, httpx_mock, async_, usag
487487
},
488488
headers={"Content-Type": "application/json"},
489489
)
490-
runner = CliRunner(mix_stderr=False)
490+
runner = CliRunner()
491491
args = ["-m", "gpt-4o-mini", "--key", "x", "--no-stream"]
492492
if usage:
493493
args.append(usage)
494494
if async_:
495495
args.append("--async")
496496
result = runner.invoke(cli, args, catch_exceptions=False)
497497
assert result.exit_code == 0
498-
assert result.output == "Ho ho ho\n"
498+
assert result.stdout == "Ho ho ho\n"
499499
if usage:
500500
assert result.stderr == "Token usage: 1,000 input, 2,000 output\n"
501501
# Confirm it was correctly logged

tests/test_embed_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def test_embed_multi_files_errors(multi_files, args, expected_error):
582582
)
583583
def test_embed_multi_files_encoding(multi_files, extra_args, expected_error):
584584
db_path, files = multi_files
585-
runner = CliRunner(mix_stderr=False)
585+
runner = CliRunner()
586586
result = runner.invoke(
587587
cli,
588588
[

0 commit comments

Comments
 (0)