Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_basemodel
Function · 0.70
construct_type
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected