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

Method _check_const

Lib/optparse.py:680–684  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

678 self.dest = self._short_opts[0][1]
679
680 def _check_const(self):
681 if self.action not in self.CONST_ACTIONS and self.const is not None:
682 raise OptionError(
683 "'const' must not be supplied for action %r" % self.action,
684 self)
685
686 def _check_nargs(self):
687 if self.action in self.TYPED_ACTIONS:

Callers

nothing calls this directly

Calls 1

OptionErrorClass · 0.85

Tested by

no test coverage detected