-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 type args are mistyped in help #508
Comments
Thanks for reporting this. Looks like a bug to me. Next steps are to add a test case and identify and resolve the issue. |
Given that |
Unfortunately I have to agree, |
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.The text was updated successfully, but these errors were encountered: