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

Method __getattr__

src/openai/_utils/_proxy.py:19–23  ·  view source on GitHub ↗
(self, attr: str)

Source from the content-addressed store, hash-verified

17 # to support using a proxy as a catch-all for any random access, e.g. `proxy.foo.bar.baz`
18
19 def __getattr__(self, attr: str) -> object:
20 proxied = self.__get_proxied__()
21 if isinstance(proxied, LazyProxy):
22 return proxied # pyright: ignore
23 return getattr(proxied, attr)
24
25 @override
26 def __repr__(self) -> str:

Callers

nothing calls this directly

Calls 1

__get_proxied__Method · 0.95

Tested by

no test coverage detected