MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __str__

Method __str__

tools/python-3.11.9-amd64/Lib/argparse.py:775–781  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

773 self.message = message
774
775 def __str__(self):
776 if self.argument_name is None:
777 format = '%(message)s'
778 else:
779 format = _('argument %(argument_name)s: %(message)s')
780 return format % dict(message=self.message,
781 argument_name=self.argument_name)
782
783
784class ArgumentTypeError(Exception):

Callers

nothing calls this directly

Calls 1

_Function · 0.70

Tested by

no test coverage detected