-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
bpo-20039: Add doc to argparse.ArgumentTypeError #31125
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
Conversation
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.
I think this adds value.
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.
If so do we need to document ArgumentError
as well too?
Doc/library/argparse.rst
Outdated
.. exception:: ArgumentTypeError | ||
|
||
An error from trying to convert a command line string to a type | ||
|
||
.. versionadded:: 3.7 |
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.
This line should be above the 'Exceptions' header.
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.
Fixed
Looks like this issue was already solved in this commit: 79ae019 |
https://bugs.python.org/issue20039