Skip to content

Commit 8e806cb

Browse files
committed
gh-134082: Modernize docstrings in ArgumentParser.parse_known_intermixed_args
1 parent 7a4a6cf commit 8e806cb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Lib/argparse.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,13 +2562,13 @@ def parse_intermixed_args(self, args=None, namespace=None):
25622562
return args
25632563

25642564
def parse_known_intermixed_args(self, args=None, namespace=None):
2565-
# returns a namespace and list of extras
2566-
#
2567-
# positional can be freely intermixed with optionals. optionals are
2568-
# first parsed with all positional arguments deactivated. The 'extras'
2569-
# are then parsed. If the parser definition is incompatible with the
2570-
# intermixed assumptions (e.g. use of REMAINDER, subparsers) a
2571-
# TypeError is raised.
2565+
"""
2566+
Return a namespace and list of extras positional can be freely
2567+
intermixed with optionals. optionals are first parsed with all
2568+
positional arguments deactivated. The 'extras' are then parsed.
2569+
If the parser definition is incompatible with the intermixed
2570+
assumptions (e.g. use of REMAINDER, subparsers) a TypeError is raised.
2571+
"""
25722572

25732573
positionals = self._get_positional_actions()
25742574
a = [action for action in positionals

0 commit comments

Comments
 (0)