Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openai/openai-python
/ get_origin
Function
get_origin
src/openai/_compat.py:36–37 ·
view source on GitHub ↗
(t: type[Any])
Source
from the content-addressed store, hash-verified
34
...
35
36
def
get_origin(t: type[Any]) -> type[Any] | None:
# noqa: ARG001
37
...
38
39
def
is_literal_type(type_: type[Any]) -> bool:
# noqa: ARG001
40
...
Callers
8
_parse
Method · 0.70
_parse
Method · 0.70
is_basemodel_type
Function · 0.70
construct_type
Function · 0.70
_process_response
Method · 0.70
_process_response
Method · 0.70
is_stream_class_type
Function · 0.70
assert_matches_type
Function · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected