MCPcopy Create free account
hub / github.com/ElementsProject/lightning / output_type

Function output_type

tools/fromschema.py:32–38  ·  view source on GitHub ↗
(properties, is_optional)

Source from the content-addressed store, hash-verified

30
31
32def output_type(properties, is_optional):
33 typename = properties['type'].replace('_', '\\_')
34 if typename == 'array':
35 typename += ' of {}s'.format(properties['items']['type'].replace('_', '\\_'))
36 if is_optional:
37 typename += ", optional"
38 output(" ({})".format(typename))
39
40
41def output_range(properties):

Callers 1

output_memberFunction · 0.70

Calls 1

outputFunction · 0.85

Tested by

no test coverage detected