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

Method check_value

Lib/optparse.py:751–756  ·  view source on GitHub ↗
(self, opt, value)

Source from the content-addressed store, hash-verified

749 # -- Processing methods --------------------------------------------
750
751 def check_value(self, opt, value):
752 checker = self.TYPE_CHECKER.get(self.type)
753 if checker is None:
754 return value
755 else:
756 return checker(self, opt, value)
757
758 def convert_value(self, opt, value):
759 if value is not None:

Callers 2

convert_valueMethod · 0.95
get_default_valuesMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected