Replies: 1 comment
-
PR: #1134 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
The args: List[str] option on autocompletion functions is documented as containing all of the CLI arguments before the option being completed.. It however, is currently hard coded to always return an empty list. The tests that test this behavior are also incorrectly verifying that args is empty when it should not be.
Before the most recent version args was being set to Context.args. This was also incorrect (and almost always the empty list) because Context.args contains CLI parameters that Click did not understand (i.e. the leftovers when you use lenient parsing).
I had a suggested fix for this bug in #1006 but was asked to pull it out into a separate PR which I will now do.
Operating System
macOS
Operating System Details
No response
Typer Version
0.15.1
Python Version
3.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions