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

Function has_members

tools/fromschema.py:114–122  ·  view source on GitHub ↗

Does this sub have any properties to print?

(sub)

Source from the content-addressed store, hash-verified

112
113
114def has_members(sub):
115 """Does this sub have any properties to print?"""
116 for p in list(sub['properties'].keys()):
117 if len(sub['properties'][p]) == 0:
118 continue
119 if 'deprecated' in sub['properties'][p]:
120 continue
121 return True
122 return False
123
124
125def output_members(sub, indent=''):

Callers 1

output_membersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected