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

Method check_value

tools/python-3.11.9-amd64/Lib/optparse.py:761–766  ·  view source on GitHub ↗
(self, opt, value)

Source from the content-addressed store, hash-verified

759 # -- Processing methods --------------------------------------------
760
761 def check_value(self, opt, value):
762 checker = self.TYPE_CHECKER.get(self.type)
763 if checker is None:
764 return value
765 else:
766 return checker(self, opt, value)
767
768 def convert_value(self, opt, value):
769 if value is not None:

Callers 4

convert_valueMethod · 0.95
get_default_valuesMethod · 0.80
check_defaultMethod · 0.80
get_default_valuesMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected