L i rddlZddlZddlZddlZddlmZmZddlmZejdk(Z ejdddk\Z ejdddk\Z ejdddk\Zejddd k\Zejddd k\ZerddlZd Znd ZGd dZej(ZdZy)N)MappingSequence) _GenericAliasPyPy) )r )r )r )rc`tj|tjjS)N)format) annotationlibget_annotationsFormat FORWARDREFclss R/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/attr/_compat.py_get_annotationsrs&,,  ,,77  c:|jjdiS)z, Get annotations for *cls*. __annotations__)__dict__getrs rrr!s|| 1266rc(eZdZdZdgZdZdZdZy)_AnnotationExtractorz^ Extract type annotations from a callable, returning None whenever there is none. sigcr tj||_y#ttf$r d|_YywxYw)N)inspect signaturer ValueError TypeError)selfcallables r__init__z_AnnotationExtractor.__init__0s4 ((2DHI& DH s 66c|jsyt|jjj}|r8|djt j jur|djSy)zU Return the type annotation of the first argument if it's not empty. Nr)rlist parametersvalues annotationr! Parameterempty)r%paramss rget_first_param_typez)_AnnotationExtractor.get_first_param_type6s^xxdhh))0023 fQi**'2C2C2I2II!9'' 'rc|jrF|jjtjjur|jjSy)z; Return the return type if it's not empty. N)rreturn_annotationr! Signaturer.)r%s rget_return_typez$_AnnotationExtractor.get_return_typeCs< HH**'2C2C2I2II88-- -rN)__name__ __module__ __qualname____doc__ __slots__r'r0r4rrrr(s I  rrc@|jtur |jSy)zDIf this is a generic class (A[str]), return the generic base for it.N) __class__r __origin__)cls rget_generic_baser?_s ||}$}} r)r!platformsys threadingcollections.abcrrtypingrpython_implementationPYPY version_info PY_3_10_PLUS PY_3_11_PLUS PY_3_12_PLUS PY_3_13_PLUS PY_3_14_PLUSrrrlocal repr_contextr?r:rrrOs - &x%%'61#w. #w. #w. #w. #w.   7%%hy r