MCPcopy
hub / github.com/openai/openai-python / __iter__

Method __iter__

src/openai/_base_client.py:257–260  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

255 # to cast a model to a dictionary, model.dict(), which is used internally
256 # by pydantic.
257 def __iter__(self) -> Iterator[_T]: # type: ignore
258 for page in self.iter_pages():
259 for item in page._get_page_items():
260 yield item
261
262 def iter_pages(self: SyncPageT) -> Iterator[SyncPageT]:
263 page = self

Callers

nothing calls this directly

Calls 2

iter_pagesMethod · 0.95
_get_page_itemsMethod · 0.45

Tested by

no test coverage detected