Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
_parse
Method · 0.85
is_basemodel_type
Function · 0.85
construct_type
Function · 0.85
_process_response
Method · 0.85
_process_response
Method · 0.85
is_stream_class_type
Function · 0.85
is_annotated_type
Function · 0.85
is_list_type
Function · 0.85
is_iterable_type
Function · 0.85
is_union_type
Function · 0.85
is_required_type
Function · 0.85
extract_type_var_from_base
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected