Migrating to typer and docstring with --help #976
Unanswered
alanwilter
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm adapting my codes to use
typer
, I really like it. But I also like proper docstrings and then when I did this:I noticed that when I do, I get:
Not great :-(
So, what is the best practice here? Give up the detailed docstring and format for those cases?
Or there is a way to properly format the help output when using
--help
?As I use
Ruff
, I may haveMissing argument description in the docstring
(D417
) and I like this to keep my functions well documented.Operating System
Linux, Mac
Typer Version
0.12.5
Python Version
3.10.14
Beta Was this translation helpful? Give feedback.
All reactions