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

Method to_required

Tools/clinic/libclinic/dsl_parser.py:823–831  ·  view source on GitHub ↗

Transition to the "required" parameter state.

(self)

Source from the content-addressed store, hash-verified

821
822
823 def to_required(self) -> None:
824 """
825 Transition to the "required" parameter state.
826 """
827 if self.parameter_state is not ParamState.REQUIRED:
828 self.parameter_state = ParamState.REQUIRED
829 assert self.function is not None
830 for p in self.function.parameters.values():
831 p.group = -p.group
832
833 def state_parameter(self, line: str) -> None:
834 assert isinstance(self.function, Function)

Callers 1

parse_parameterMethod · 0.95

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected