Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode-sdk-python
/ is_union
Function
is_union
src/opencode_ai/_compat.py:34–35 ·
view source on GitHub ↗
(tp: type[Any] | None)
Source
from the content-addressed store, hash-verified
32
...
33
34
def
is_union(tp: type[Any] | None) -> bool:
# noqa: ARG001
35
...
36
37
def
get_origin(t: type[Any]) -> type[Any] | None:
# noqa: ARG001
38
...
Callers
2
is_basemodel
Function · 0.85
construct_type
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected