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

Method fail

src/click/types.py:157–164  ·  view source on GitHub ↗

Helper method to fail with an invalid value message.

(
        self,
        message: str,
        param: Parameter | None = None,
        ctx: Context | None = None,
    )

Source from the content-addressed store, hash-verified

155 return (rv or "").split(self.envvar_list_splitter)
156
157 def fail(
158 self,
159 message: str,
160 param: Parameter | None = None,
161 ctx: Context | None = None,
162 ) -> t.NoReturn:
163 """Helper method to fail with an invalid value message."""
164 raise BadParameter(message, ctx=ctx, param=param)
165
166 def shell_complete(
167 self, ctx: Context, param: Parameter, incomplete: str

Callers 10

convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45

Calls 1

BadParameterClass · 0.85

Tested by

no test coverage detected