-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional Literal argument with None default does not generate tab completion #158
Comments
This should only impact completion script generation (#158)
This should only impact completion script generation (#158)
Thanks @KolinGuo! I just pushed a change to |
Hi @brentyi, thanks for your update!
Does it work on your end? |
Are you installing from source? I didn't do a release, sorry for not clarifying. Here's a pip command:
The output I get from your command:
|
Sorry my bad, the main branch worked. I wasn't installing your main branch before |
Thank you very much! Do you plan to publish a quick release to PyPI? |
Done! |
It seemed like
Optional[Literal]
argument with None as its default value does not generate tab completion correctly.This might be related to #156
See the minimal example below where the
preset
argument fails to generate choices for tab completion while theframe
argument works.Below is the first few lines of the generated completion file:
The text was updated successfully, but these errors were encountered: