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 @@ -896,8 +896,8 @@ the various :class:`ArgumentParser` actions. The two most common uses of it are
896
896
(like ``-f `` or ``--foo ``) and ``nargs='?' ``. This creates an optional
897
897
argument that can be followed by zero or one command-line arguments.
898
898
When parsing the command line, if the option string is encountered with no
899
- command-line argument following it, the value of ``const `` will be assumed to
900
- be `` None `` instead. See the nargs _ description for examples.
899
+ command-line argument following it, the value from ``const `` will be used.
900
+ See the nargs _ description for examples.
901
901
902
902
.. versionchanged :: 3.11
903
903
``const=None `` by default, including when ``action='append_const' `` or
You can’t perform that action at this time.
0 commit comments