8000 bpo-20039: Add doc to argparse.ArgumentTypeError by ukarroum · Pull Request #31125 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bpo-20039: Add doc to argparse.ArgumentTypeError
  • Loading branch information
ukarroum committed Feb 4, 2022
commit 564a549aca41e88e3a25530f1b15dd3a05d5062b
7 changes: 7 additions & 0 deletions Doc/library/argparse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2130,6 +2130,13 @@ containing the populated namespace and the list of remaining argument strings.
:meth:`~ArgumentParser.parse_intermixed_args` raises an error if there are any
remaining unparsed argument strings.

Exceptions
^^^^^^^^^^

.. exception:: ArgumentTypeError

An error from trying to convert a command line string to a type

.. versionadded:: 3.7
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed


.. _upgrading-optparse-code:
Expand Down
0