https://github.com/python/cpython/commit/51227b6b1a9181ef4da10811e7b5a55474fc4378
commit: 51227b6b1a9181ef4da10811e7b5a55474fc4378
branch: main
author: Xiao Yuan <[email protected]>
committer: savannahostrowski <[email protected]>
date: 2026-01-06T09:53:43-08:00
summary:

Doc: Fix missing closing parenthesis in argparse example (#143488)

files:
M Doc/library/argparse.rst

diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 5cfe047d746f68..f4109fe0e5f2bf 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -753,7 +753,7 @@ upper-cased name. For example::
 
    >>> parser = argparse.ArgumentParser(prog='PROG')
    >>> parser.add_argument('--foo-bar')
-   >>> parser.parse_args(['--foo-bar', 'FOO-BAR']
+   >>> parser.parse_args(['--foo-bar', 'FOO-BAR'])
    Namespace(foo_bar='FOO-BAR')
    >>> parser.print_help()
    usage:  [-h] [--foo-bar FOO-BAR]

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to