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

Method stringify_items

src/opencode_ai/_qs.py:55–67  ·  view source on GitHub ↗
(
        self,
        params: Params,
        *,
        array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN,
        nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN,
    )

Source from the content-addressed store, hash-verified

53 )
54
55 def stringify_items(
56 self,
57 params: Params,
58 *,
59 array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN,
60 nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN,
61 ) -> list[tuple[str, str]]:
62 opts = Options(
63 qs=self,
64 array_format=array_format,
65 nested_format=nested_format,
66 )
67 return flatten([self._stringify_item(key, value, opts) for key, value in params.items()])
68
69 def _stringify_item(
70 self,

Callers 2

stringifyMethod · 0.95

Calls 3

_stringify_itemMethod · 0.95
OptionsClass · 0.85
flattenFunction · 0.85

Tested by

no test coverage detected