MCPcopy Index your code
hub / github.com/python/cpython / _iter_indented_subactions

Method _iter_indented_subactions

Lib/argparse.py:731–739  ·  view source on GitHub ↗
(self, action)

Source from the content-addressed store, hash-verified

729 return _re.sub(fmt_spec, colorize, help_string, flags=_re.VERBOSE)
730
731 def _iter_indented_subactions(self, action):
732 try:
733 get_subactions = action._get_subactions
734 except AttributeError:
735 pass
736 else:
737 self._indent()
738 yield from get_subactions()
739 self._dedent()
740
741 def _split_lines(self, text, width):
742 text = self._whitespace_matcher.sub(' ', text).strip()

Callers 2

add_argumentMethod · 0.95
_format_actionMethod · 0.95

Calls 2

_indentMethod · 0.95
_dedentMethod · 0.95

Tested by

no test coverage detected