MCPcopy
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
37def flatten(t: Iterable[Iterable[_T]]) -> list[_T]:
38 return [item for sublist in t for item in sublist]
39
40
41def extract_files(

Callers 2

stringify_itemsMethod · 0.85
_extract_itemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected