%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/attr/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/attr/__pycache__/_compat.cpython-312.pyc

�

��e�	���ddlZddlZddlZddlZddlmZmZddlmZej�dk(Z
ejdddk\Zejdddk\Z
ejdddk\Zejddd	k\Zejdkr	dd
lmZndd
lmZGd�d�Zej*�Zd
�Zy#e$reZY�(wxYw)�N)�Mapping�Sequence)�
_GenericAlias�PyPy�)��)r�	)r�
)r�)�Protocolc�(�eZdZdZdgZd�Zd�Zd�Zy)�_AnnotationExtractorz^
    Extract type annotations from a callable, returning None whenever there
    is none.
    �sigc�r�	tj|�|_y#ttf$r
d|_YywxYw)N)�inspect�	signaturer�
ValueError�	TypeError)�self�callables  �./usr/lib/python3/dist-packages/attr/_compat.py�__init__z_AnnotationExtractor.__init__$s4��	��(�(��2�D�H���I�&�	��D�H�	�s��6�6c���|jsyt|jjj��}|r8|djt
jjur|djSy)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_type*s^���x�x���d�h�h�)�)�0�0�2�3���f�Q�i�*�*�'�2C�2C�2I�2I�I��!�9�'�'�'��c��|jrF|jjtjjur|jjSy)z;
        Return the return type if it's not empty.
        N)r�return_annotationr�	Signaturer )rs r�get_return_typez$_AnnotationExtractor.get_return_type7s<��

�H�H����*�*�'�2C�2C�2I�2I�I��8�8�-�-�-�r#N)�__name__�
__module__�__qualname__�__doc__�	__slots__rr"r'�r#rrrs���
��I���
r#rc�@�|jtur|jSy)zDIf this is a generic class (A[str]), return the generic base for it.N)�	__class__r�
__origin__)�cls r�get_generic_baser2Ss��	�|�|�}�$��}�}��r#)r�platform�sys�	threading�collections.abcrr�typingr�python_implementation�PYPY�version_info�PY_3_8_PLUS�PY_3_9_PLUS�PY310�PY_3_12_PLUS�typing_extensionsr
�ImportError�objectr�local�repr_contextr2r-r#r�<module>rDs�����
��-� �&�x�%�%�'�6�1�����r��"�f�,�����r��"�f�,������!���'�������#�w�.�����f���.� �%�%�h�y��� ����{�����s�B7�7C�C

Zerion Mini Shell 1.0