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

Function wrapped

src/opencode_ai/_response.py:653–661  ·  view source on GitHub ↗
(*args: P.args, **kwargs: P.kwargs)

Source from the content-addressed store, hash-verified

651
652 @functools.wraps(func)
653 def wrapped(*args: P.args, **kwargs: P.kwargs) -> ResponseContextManager[APIResponse[R]]:
654 extra_headers: dict[str, str] = {**(cast(Any, kwargs.get("extra_headers")) or {})}
655 extra_headers[RAW_RESPONSE_HEADER] = "stream"
656
657 kwargs["extra_headers"] = extra_headers
658
659 make_request = functools.partial(func, *args, **kwargs)
660
661 return ResponseContextManager(cast(Callable[[], APIResponse[R]], make_request))
662
663 return wrapped
664

Callers

nothing calls this directly

Calls 3

getMethod · 0.45

Tested by

no test coverage detected