MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / flatten

Function flatten

src/opencode_ai/_utils/_utils.py:34–35  ·  view source on GitHub ↗
(t: Iterable[Iterable[_T]])

Source from the content-addressed store, hash-verified

32
33
34def flatten(t: Iterable[Iterable[_T]]) -> list[_T]:
35 return [item for sublist in t for item in sublist]
36
37
38def extract_files(

Callers 2

stringify_itemsMethod · 0.85
_extract_itemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected