HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib/python3.11/site-packages/attr/__pycache__/_compat.cpython-311.pyc
�

C�;f�	���ddlZddlZddlZddlZddlmZmZddlmZej	��dkZ
ejdd�dkZejdd�dkZ
ejdd�dkZejdd�d	kZejdkr	dd
lmZn#e$reZYn
wxYwdd
lmZGd�d��Zej��Zd
�ZdS)�N)�Mapping�Sequence)�
_GenericAlias�PyPy�)��)r�	)r�
)r�)�Protocolc�*�eZdZdZdgZd�Zd�Zd�ZdS)�_AnnotationExtractorz^
    Extract type annotations from a callable, returning None whenever there
    is none.
    �sigc�x�	tj|��|_dS#ttf$rd|_YdSwxYw)N)�inspect�	signaturer�
ValueError�	TypeError)�self�callables  �?/opt/alt/python311/lib/python3.11/site-packages/attr/_compat.py�__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_type*sb���x�	��4��d�h�)�0�0�2�2�3�3���	(�f�Q�i�*�'�2C�2I�I�I��!�9�'�'��t�c�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_type7s4��

�H�	.���*�'�2C�2I�I�I��8�-�-��tr#N)�__name__�
__module__�__qualname__�__doc__�	__slots__rr"r'�r#rrrsT��������
��I�������
�
�
�
�
r#rc�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_baser2Ss��	�|�}�$�$��}���4r#)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��r�"�f�,����r��r�"�f�,�����!����'�������#�w�.����f����.�.�.�.�.�.�.�������������� ������%�%�%�%�%�%�%�%�h�y�� � ������s�
B�B�B