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

Function get_origin

src/opencode_ai/_compat.py:37–38  ·  view source on GitHub ↗
(t: type[Any])

Source from the content-addressed store, hash-verified

35 ...
36
37 def get_origin(t: type[Any]) -> type[Any] | None: # noqa: ARG001
38 ...
39
40 def is_literal_type(type_: type[Any]) -> bool: # noqa: ARG001
41 ...

Callers 15

_parseMethod · 0.85
is_basemodel_typeFunction · 0.85
construct_typeFunction · 0.85
_process_responseMethod · 0.85
_process_responseMethod · 0.85
is_stream_class_typeFunction · 0.85
is_annotated_typeFunction · 0.85
is_list_typeFunction · 0.85
is_iterable_typeFunction · 0.85
is_union_typeFunction · 0.85
is_required_typeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected