MCPcopy
hub / github.com/pallets/click / set_parameter_source

Method set_parameter_source

src/click/core.py:928–935  ·  view source on GitHub ↗

Set the source of a parameter. This indicates the location from which the value of the parameter was obtained. :param name: The name of the parameter. :param source: A member of :class:`~click.core.ParameterSource`.

(self, name: str, source: ParameterSource)

Source from the content-addressed store, hash-verified

926 return self.invoke(cmd, *args, **kwargs)
927
928 def set_parameter_source(self, name: str, source: ParameterSource) -> None:
929 """Set the source of a parameter. This indicates the location
930 from which the value of the parameter was obtained.
931
932 :param name: The name of the parameter.
933 :param source: A member of :class:`~click.core.ParameterSource`.
934 """
935 self._parameter_source[name] = source
936
937 def get_parameter_source(self, name: str) -> ParameterSource | None:
938 """Get the source of a parameter. This indicates the location

Callers 1

handle_parse_resultMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected