Open impredicative opened 5 months ago
Thanks for reporting this. Looks like a bug to me. Next steps are to add a test case and identify and resolve the issue.
Hi @dbieber,
I submitted pr #513 to solve this bug and added tests, please let me know your opinion.
Hi @dbieber,
Updated pr #513 to work with the typing package, waiting for your review on the last commit.
Given that fire
is seemingly dead and this bug really harms the displayed help, I figure it's wise to move away from fire
. Any decent LLM, e.g. gpt-4o
, can replace the use of fire
in a module with a different package, e.g. click
.
Type annotations that use
typing.Optional
are incorrectly documented when showing help.Example 1
The corresponding help output is:
Here,
Type: Optional
is totally incorrect. It should beOptional[str]
. My use ofstr
is just an example and it can be anything.Example 2
The corresponding help output is:
Here,
Type: Optional[Optional]
is even more incorrect. It should beOptional[str]
. My use ofstr
is just an example and it can be anything.