diff --git a/Lib/argparse.py b/Lib/argparse.py index f688c38d0d1ae5..11f5959ece2f36 100644 --- a/Lib/argparse.py +++ b/Lib/argparse.py @@ -2562,13 +2562,13 @@ def parse_intermixed_args(self, args=None, namespace=None): return args def parse_known_intermixed_args(self, args=None, namespace=None): - # returns a namespace and list of extras - # - # positional can be freely intermixed with optionals. optionals are - # first parsed with all positional arguments deactivated. The 'extras' - # are then parsed. If the parser definition is incompatible with the - # intermixed assumptions (e.g. use of REMAINDER, subparsers) a - # TypeError is raised. + """ + Return a namespace and list of extras positional can be freely + intermixed with optionals. Optionals are first parsed with all + positional arguments deactivated. The 'extras' are then parsed. + If the parser definition is incompatible with the intermixed + assumptions (e.g. use of REMAINDER, subparsers) a TypeError is raised. + """ positionals = self._get_positional_actions() a = [action for action in positionals