Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openai/openai-python
/ flatten
Function
flatten
src/openai/_utils/_utils.py:37–38 ·
view source on GitHub ↗
(t: Iterable[Iterable[_T]])
Source
from the content-addressed store, hash-verified
35
36
37
def
flatten(t: Iterable[Iterable[_T]]) -> list[_T]:
38
return
[item
for
sublist in t
for
item in sublist]
39
40
41
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