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

Method _get_validation_formatter

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

Source from the content-addressed store, hash-verified

2813 return formatter
2814
2815 def _get_validation_formatter(self):
2816 # Return cached formatter for read-only validation operations
2817 # (_expand_help and _format_args). Avoids repeated slow _set_color calls.
2818 if self._cached_formatter is None:
2819 self._cached_formatter = self._get_formatter()
2820 return self._cached_formatter
2821
2822 # =====================
2823 # 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