File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -981,8 +981,8 @@ the various :class:`ArgumentParser` actions. The two most common uses of it are
981
981
(like ``-f `` or ``--foo ``) and ``nargs='?' ``. This creates an optional
982
982
argument that can be followed by zero or one command-line arguments.
983
983
When parsing the command line, if the option string is encountered with no
984
- command-line argument following it, the value of ``const `` will be assumed to
985
- be `` None `` instead. See the nargs _ description for examples.
984
+ command-line argument following it, the value from ``const `` will be used.
985
+ See the nargs _ description for examples.
986
986
987
987
.. versionchanged :: 3.11
988
988
``const=None `` by default, including when ``action='append_const' `` or
You can’t perform that action at this time.
0 commit comments