MCPcopy
hub / github.com/anthropics/anthropic-sdk-python / is_given

Function is_given

src/anthropic/_utils/_utils.py:156–157  ·  src/anthropic/_utils/_utils.py::is_given
(obj: _T | NotGiven | Omit)

Source from the content-addressed store, hash-verified

154
155
156def is_given(obj: _T | NotGiven | Omit) -> TypeGuard[_T]:
157 return not isinstance(obj, NotGiven) and not isinstance(obj, Omit)
158
159
160class="cm"># Type safe methods for narrowing types with TypeVars.

Callers 15

parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
headersMethod · 0.85
copyMethod · 0.85
_build_requestMethod · 0.85
__init__Method · 0.85
__init__Method · 0.85
make_request_optionsFunction · 0.85
_middleware_entry_modeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected