Skip to content

Commit

Permalink
feat: Add deprecated option to command/arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCardin committed Apr 11, 2024
1 parent 1201cbe commit 28d91b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13-dev"]
pydantic-version: ["1.0", "2.0"]

# No need to matrix test pydantic versions. But the matrix syntax still
Expand Down
6 changes: 3 additions & 3 deletions src/cappa/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,9 @@ def consume_arg(

if context.provide_completions and not context.has_values():
if arg.completion:
completions: list[Completion] | list[
FileCompletion
] = arg.completion(result)
completions: list[Completion] | list[FileCompletion] = (
arg.completion(result)
)
else:
completions = [FileCompletion(result)]
raise CompletionAction(*completions)
Expand Down

0 comments on commit 28d91b7

Please sign in to comment.