MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / flatten

Function flatten

src/bonsai/test/core/bootstrap.py:266–271  ·  view source on GitHub ↗
(iterable)

Source from the content-addressed store, hash-verified

264
265
266def flatten(iterable):
267 for item in iterable:
268 if isinstance(item, (list, tuple)):
269 yield from flatten(item)
270 else:
271 yield item
272
273
274class Call(TypedDict):

Callers 6

get_element_dataFunction · 0.85
create_commMethod · 0.85
createMethod · 0.85
createMethod · 0.85
decorateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected