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

Function is_union

src/openai/_compat.py:33–34  ·  view source on GitHub ↗
(tp: type[Any] | None)

Source from the content-addressed store, hash-verified

31 ...
32
33 def is_union(tp: type[Any] | None) -> bool: # noqa: ARG001
34 ...
35
36 def get_origin(t: type[Any]) -> type[Any] | None: # noqa: ARG001
37 ...

Callers 2

is_basemodelFunction · 0.70
construct_typeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected