From ca1122b5fb46c3b2f38b2346c2e77cd4196f200a Mon Sep 17 00:00:00 2001 From: PrineNaroliya Date: Mon, 1 Sep 2025 11:32:31 +0530 Subject: [PATCH] Fix const description in add_argument() docs --- Doc/library/argparse.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 79e15994491eff..ef8242f5f780f5 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -981,8 +981,8 @@ the various :class:`ArgumentParser` actions. The two most common uses of it are (like ``-f`` or ``--foo``) and ``nargs='?'``. This creates an optional argument that can be followed by zero or one command-line arguments. When parsing the command line, if the option string is encountered with no - command-line argument following it, the value of ``const`` will be assumed to - be ``None`` instead. See the nargs_ description for examples. + command-line argument following it, the value from ``const`` will be used. + See the nargs_ description for examples. .. versionchanged:: 3.11 ``const=None`` by default, including when ``action='append_const'`` or