-
-
Notifications
You must be signed in to change notification settings - Fork 680
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
🐛 Update type annotations for show_default
parameter and update docs for setting a "Custom default string"
#501
Conversation
📝 Docs preview for commit 5b02ed4 at: https://637303b6be5251630161321e--typertiangolo.netlify.app |
📝 Docs preview for commit 68a8592 at: https://639ce9cc18290c0ac6ff530c--typertiangolo.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for the PR!
While we're pretty late to follow up on this, I believe this contribution still makes sense, as the feature is available for typer.Option
- it's just not documented or correctly typed.
I hope you don't mind that I pushed to your branch directly to update it with the latest changes from master
. I'll also include a new section for the documentation to showcase how this would work in a similar fashion as it does for typer.Argument
.
📝 Docs preview for commit 2197f6d at: https://ed32ee88.typertiangolo.pages.dev |
Not a problem for the assistance in getting this merged. |
show_default
parameter and update docs for setting a "Custom default string"
Awesome, thanks @plannigan! 🤓 And thanks a lot @svlandeg for the review and tweaks! 🙇 This will be available in Typer 0.9.2 in the next few hours. 🚀 |
Fixes #158.