Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
34
def
flatten(t: Iterable[Iterable[_T]]) -> list[_T]:
35
return
[item
for
sublist in t
for
item in sublist]
36
37
38
def
extract_files(
Callers
2
stringify_items
Method · 0.85
_extract_items
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected