Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode-sdk-python
/ is_given
Function
is_given
src/opencode_ai/_utils/_utils.py:130–131 ·
view source on GitHub ↗
(obj: NotGivenOr[_T])
Source
from the content-addressed store, hash-verified
128
129
130
def
is_given(obj: NotGivenOr[_T]) -> TypeGuard[_T]:
131
return
not isinstance(obj, NotGiven)
132
133
134
# Type safe methods for narrowing types with TypeVars.
Callers
12
parse
Method · 0.85
parse
Method · 0.85
_strip_raw_response_header
Method · 0.85
_build_request
Method · 0.85
_maybe_override_cast_to
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
make_request_options
Function · 0.85
copy
Method · 0.85
copy
Method · 0.85
_transform_typeddict
Function · 0.85
_async_transform_typeddict
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected