MCPcopy Index your code
hub / github.com/RustPython/RustPython / _check_help

Method _check_help

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

Source from the content-addressed store, hash-verified

1738 action.container._remove_action(action)
1739
1740 def _check_help(self, action):
1741 if action.help and hasattr(self, "_get_validation_formatter"):
1742 formatter = self._get_validation_formatter()
1743 try:
1744 formatter._expand_help(action)
1745 except (ValueError, TypeError, KeyError) as exc:
1746 raise ValueError('badly formed help string') from exc
1747
1748
1749class _ArgumentGroup(_ActionsContainer):

Callers 3

add_argumentMethod · 0.95
add_parserMethod · 0.80
add_subparsersMethod · 0.80

Calls 3

hasattrFunction · 0.85
_expand_helpMethod · 0.80

Tested by

no test coverage detected