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

Function has_members

tools/fromschema.py:220–231  ·  view source on GitHub ↗

Does this sub have any properties to print?

(sub)

Source from the content-addressed store, hash-verified

218
219
220def has_members(sub):
221 """Does this sub have any properties to print?"""
222 if 'properties' not in sub:
223 return False
224
225 for p in list(sub['properties'].keys()):
226 if len(sub['properties'][p]) == 0:
227 continue
228 if sub['properties'][p].get('deprecated') is True:
229 continue
230 return True
231 return False
232
233
234def output_members(sub, indent=''):

Callers 1

output_membersFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected