MCPcopy Create free account
hub / github.com/datapane/datapane / makelist

Function makelist

python-client/src/datapane/_vendor/bottle.py:180–186  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

178
179
180def makelist(data): # This is just too handy
181 if isinstance(data, (tuple, list, set, dict)):
182 return list(data)
183 elif data:
184 return [data]
185 else:
186 return []
187
188
189class DictProperty(object):

Callers 4

getargspecFunction · 0.85
routeMethod · 0.85
decoratorMethod · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected