o �J�h� �@s�ddlZddlZddlZddlZddlmZmZddlmZe� �dkZ ej dd�dkZ ej dd�dkZ ej dd�dkZej dd�d kZej dd�d kZej dd�d kZerdddlZejZnd d �ZGdd�d�Ze��Zdd�ZdS)�N)�Mapping�Sequence)� _GenericAliasZPyPy�)�� )r� )r� )r� )r� )r�cCs|j�di�S)z, Get annotations for *cls*. �__annotations__)�__dict__�get)�cls�r�JC:\pinokio\api\whisper-webui.git\app\env\lib\site-packages\attr\_compat.py�_get_annotationssrc@s.eZdZdZdgZdd�Zdd�Zdd�Zd S) �_AnnotationExtractorz^ Extract type annotations from a callable, returning None whenever there is none. �sigc Cs2z t�|�|_WdSttfyd|_YdSw)N)�inspect� signaturer� ValueError� TypeError)�self�callablerrr�__init__+s  �z_AnnotationExtractor.__init__cCs>|jsdSt|jj���}|r|djtjjur|djSdS)zU Return the type annotation of the first argument if it's not empty. Nr)r�list� parameters�values� annotationr� Parameter�empty)r�paramsrrr�get_first_param_type1s  z)_AnnotationExtractor.get_first_param_typecCs"|jr|jjtjjur|jjSdS)z; Return the return type if it's not empty. N)r�return_annotationr� Signaturer")rrrr�get_return_type>s �z$_AnnotationExtractor.get_return_typeN)�__name__� __module__� __qualname__�__doc__� __slots__rr$r'rrrrr#s  rcCs|jtur|jSdS)zDIf this is a generic class (A[str]), return the generic base for it.N)� __class__r� __origin__)�clrrr�get_generic_baseZs r0)r�platform�sys� threading�collections.abcrr�typingrZpython_implementationZPYPY� version_infoZ PY_3_9_PLUSZ PY_3_10_PLUSZ PY_3_11_PLUSZ PY_3_12_PLUSZ PY_3_13_PLUSZ PY_3_14_PLUSZ annotationlib�get_annotationsrr�localZ repr_contextr0rrrr�<module>s(  4 
Memory