MCPcopy
hub / github.com/openai/openai-python / is_given

Function is_given

src/openai/_utils/_utils.py:160–161  ·  src/openai/_utils/_utils.py::is_given
(obj: _T | NotGiven | Omit)

Source from the content-addressed store, hash-verified

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

Callers 15

parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
_build_requestMethod · 0.85
__init__Method · 0.85
__init__Method · 0.85
make_request_optionsFunction · 0.85
copyMethod · 0.85
copyMethod · 0.85
pollMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected