L irddlmZddlmZmZddlmZmZmZm Z ddl m Z edZ Gddee eZ y) ) annotations)ABCabstractmethod)GenericTypeVarIterablecast)overrideTceZdZdZd dZed dZed dZed dZe eddZ ddZ ddZ e dd Zy ) LazyProxyzImplements data methods to pretend that an instance is another instance. This includes forwarding attribute access and other methods. c^|j}t|tr|St||SN)__get_proxied__ isinstancer getattr)selfattrproxieds ]/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/anthropic/_utils/_proxy.py __getattr__zLazyProxy.__getattr__s,&&( gy )Nw%%c|j}t|tr|jjSt |jSr)rrr __class____name__reprrrs r__repr__zLazyProxy.__repr__s@&&( gy )$$-- -D((*++rc|j}t|tr|jjSt |Sr)rrr rrstrrs r__str__zLazyProxy.__str__ s6&&( gy )$$-- -7|rcf|j}t|trgS|jSr)rrr __dir__rs rr#zLazyProxy.__dir__'s,&&( gy )I  rc |j}tt|tr t|S|j S#t$rt|cYSwxYwr)r Exceptiontype issubclassr rrs rrzLazyProxy.__class__.sV **,G d7mY /=     :  sAAAc"|jSr)__load__rs rrzLazyProxy.__get_proxied__9s}}rc"tt|S)zHHelper method that returns the current proxy, typed as the loaded object)r r r*s r__as_proxied__zLazyProxy.__as_proxied__<sAt}rcyrr*s rr)zLazyProxy.__load__@s rN)rr returnobject)r/r )r/z Iterable[str])r/r&)r/r )r __module__ __qualname____doc__rr rr!r#propertyrrr,rr)r.rrr r s~& ,,  !!  !!  rr N) __future__rabcrrtypingrrrr typing_extensionsr r r r.rrr9s/"#33& CL7! C7!r