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

Function is_dict

src/openai/lib/_pydantic.py:143–146  ·  view source on GitHub ↗
(obj: object)

Source from the content-addressed store, hash-verified

141
142
143def is_dict(obj: object) -> TypeGuard[dict[str, object]]:
144 # just pretend that we know there are only `str` keys
145 # as that check is not worth the performance cost
146 return _is_dict(obj)
147
148
149def has_more_than_n_keys(obj: dict[str, object], n: int) -> bool:

Callers 5

resolve_refFunction · 0.70
is_response_format_paramFunction · 0.50
accumulate_deltaFunction · 0.50
accumulate_deltaFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected