MCPcopy Create free account
hub / github.com/openai/openai-python / evaluate_forwardref

Function evaluate_forwardref

tests/utils.py:31–32  ·  view source on GitHub ↗
(forwardref: ForwardRef, globalns: dict[str, Any])

Source from the content-addressed store, hash-verified

29
30
31def evaluate_forwardref(forwardref: ForwardRef, globalns: dict[str, Any]) -> type:
32 return eval(str(forwardref), globalns) # type: ignore[no-any-return]
33
34
35def assert_matches_model(model: type[BaseModelT], value: BaseModelT, *, path: list[str]) -> bool:

Calls

no outgoing calls