� u��g� ���ddlZddlZddlZddlZddlmZmZddlmZej ��dkZ ej dd�dkZ ej dd�dkZ ej dd�dkZej dd�d kZej dd�d kZej dd�d kZer ddlZejZnd �ZGd �d��Zej��Zd�ZdS)�N)�Mapping�Sequence)� _GenericAlias�PyPy�)�� )r� )r� )r� )r� )r�c�8�|j�di��S)z, Get annotations for *cls*. �__annotations__)�__dict__�get)�clss �\/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/attr/_compat.py�_get_annotationsrs���|��� 1�2�6�6�6�c�*�eZdZdZdgZd�Zd�Zd�ZdS)�_AnnotationExtractorz^ Extract type annotations from a callable, returning None whenever there is none. �sigc�x� tj|��|_dS#ttf$r d|_YdSwxYw)N)�inspect� signaturer� ValueError� TypeError)�self�callables r�__init__z_AnnotationExtractor.__init__+sJ�� ��(��2�2�D�H�H�H���I�&� � � ��D�H�H�H�H� ���s ��9�9c���|jsdSt|jj�����}|r+|djt jjur |djSdS)zU Return the type annotation of the first argument if it's not empty. Nr)r�list� parameters�values� annotationr� Parameter�empty)r�paramss r�get_first_param_typez)_AnnotationExtractor.get_first_param_type1sb���x� ��4��d�h�)�0�0�2�2�3�3�� � (�f�Q�i�*�'�2C�2I�I�I��!�9�'� '��trc�f�|jr)|jjtjjur |jjSdS)z; Return the return type if it's not empty. N)r�return_annotationr� Signaturer()rs r�get_return_typez$_AnnotationExtractor.get_return_type>s4�� �H� .���*�'�2C�2I�I�I��8�-� -��trN)�__name__� __module__� __qualname__�__doc__� __slots__r!r*r.�rrrr#sT�������� ��I���� � � � � � � � rrc�0�|jtur|jSdS)zDIf this is a generic class (A[str]), return the generic base for it.N)� __class__r� __origin__)�cls r�get_generic_baser9Zs�� �|�}�$�$��}�� �4r)r�platform�sys� threading�collections.abcrr�typingr�python_implementation�PYPY� version_info� PY_3_9_PLUS� PY_3_10_PLUS� PY_3_11_PLUS� PY_3_12_PLUS� PY_3_13_PLUS� PY_3_14_PLUS� annotationlib�get_annotationsrr�local� repr_contextr9r4rr�<module>rLsw���������� � � � �����-�-�-�-�-�-�-�-� � � � � � �&�x�%�'�'�6�1����r��r�"�f�,� ������#�w�.� ������#�w�.� ������#�w�.� ������#�w�.� ������#�w�.� �� 7�����$�4���7�7�7�%�%�%�%�%�%�%�%�h�y�� � � �����r
Memory