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

Method convert

tests/test_defaults.py:280–284  ·  view source on GitHub ↗
(self, value, param, ctx)

Source from the content-addressed store, hash-verified

278 name = "source"
279
280 def convert(self, value, param, ctx):
281 return {
282 "value": value,
283 "source": ctx.get_parameter_source(param.name),
284 }
285
286 @click.command()
287 @click.option("--default", type=Source(), default="/tmp/file")

Callers 5

test_rangeFunction · 0.45
test_range_failFunction · 0.45
test_file_surrogatesFunction · 0.45

Calls 1

get_parameter_sourceMethod · 0.80

Tested by

no test coverage detected