Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode-sdk-python
/ get_args
Function
get_args
src/opencode_ai/_compat.py:31–32 ·
view source on GitHub ↗
(t: type[Any])
Source
from the content-addressed store, hash-verified
29
...
30
31
def
get_args(t: type[Any]) -> tuple[Any, ...]:
# noqa: ARG001
32
...
33
34
def
is_union(tp: type[Any] | None) -> bool:
# noqa: ARG001
35
...
Callers
12
is_basemodel
Function · 0.85
construct_type
Function · 0.85
_build_discriminated_union_meta
Function · 0.85
_stringify_item
Method · 0.85
strip_annotated_type
Function · 0.85
extract_type_arg
Function · 0.85
_get_annotated_type
Function · 0.85
_maybe_transform_key
Function · 0.85
_transform_recursive
Function · 0.85
_async_transform_recursive
Function · 0.85
assert_matches_type
Function · 0.85
_assert_list_type
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected