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

Method set_state

tests/test_context.py:408–410  ·  view source on GitHub ↗
(self, ctx: Context, param: Parameter, value: str)

Source from the content-addressed store, hash-verified

406 called.append(self.__class__.__name__)
407
408 def set_state(self, ctx: Context, param: Parameter, value: str) -> str:
409 ctx.call_on_close(self.reset_state)
410 return value
411
412 def __init__(self, *args, **kwargs) -> None:
413 kwargs.setdefault("expose_value", False)

Callers

nothing calls this directly

Calls 1

call_on_closeMethod · 0.80

Tested by

no test coverage detected