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

Method _get_validation_formatter

Lib/argparse.py:2731–2736  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2729 return formatter
2730
2731 def _get_validation_formatter(self):
2732 # Return cached formatter for read-only validation operations
2733 # (_expand_help and _format_args). Avoids repeated slow _set_color calls.
2734 if self._cached_formatter is None:
2735 self._cached_formatter = self._get_formatter()
2736 return self._cached_formatter
2737
2738 # =====================
2739 # Help-printing methods

Callers 2

add_argumentMethod · 0.80
_check_helpMethod · 0.80

Calls 1

_get_formatterMethod · 0.95

Tested by

no test coverage detected