MCPcopy
hub / github.com/anthropics/anthropic-sdk-python / get_origin

Function get_origin

src/anthropic/_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 10

_parseMethod · 0.70
_parseMethod · 0.70
is_basemodel_typeFunction · 0.70
construct_typeFunction · 0.70
_process_responseMethod · 0.70
_process_responseMethod · 0.70
is_stream_class_typeFunction · 0.70
assert_matches_typeFunction · 0.50
_union_membersFunction · 0.50

Calls

no outgoing calls

Tested by 1

_union_membersFunction · 0.40