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

Method _get_formatter

Lib/argparse.py:2810–2813  ·  view source on GitHub ↗
(self, file=None)

Source from the content-addressed store, hash-verified

2808 return formatter.format_help()
2809
2810 def _get_formatter(self, file=None):
2811 formatter = self.formatter_class(prog=self.prog)
2812 formatter._set_color(self.color, file=file)
2813 return formatter
2814
2815 def _get_validation_formatter(self):
2816 # Return cached formatter for read-only validation operations

Callers 6

format_usageMethod · 0.95
format_helpMethod · 0.95
print_usageMethod · 0.95
print_helpMethod · 0.95
__call__Method · 0.80

Calls 1

_set_colorMethod · 0.80

Tested by

no test coverage detected