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

Method _get_theme

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

Source from the content-addressed store, hash-verified

2856 pass
2857
2858 def _get_theme(self, file=None):
2859 from _colorize import can_colorize, get_theme
2860
2861 if self.color and can_colorize(file=file):
2862 return get_theme(force_color=True).argparse
2863 else:
2864 return get_theme(force_no_color=True).argparse
2865
2866 # ===============
2867 # Exiting methods

Callers 2

errorMethod · 0.95
_warningMethod · 0.95

Calls 2

can_colorizeFunction · 0.90
get_themeFunction · 0.90

Tested by

no test coverage detected