HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib/python3.10/site-packages/attr/__pycache__/_compat.cpython-310.pyc
o

�h�
�@s�ddlZddlZddlZddlZddlmZmZddlmZe�	�dkZ
ejdd�dkZejdd�dkZ
ejdd�dkZejdd�d	kZejdd�d
kZejdd�dkZerdddlZejZndd
�ZGdd�d�Ze��Zdd�ZdS)�N)�Mapping�Sequence)�
_GenericAlias�PyPy�)��	)r�
)r�)r�)r�
)r�cCs|j�di�S)z,
        Get annotations for *cls*.
        �__annotations__)�__dict__�get)�cls�r�?/usr/local/CyberCP/lib/python3.10/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
r1)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_contextr1rrrr�<module>s(4