Your IP : 18.223.238.150


Current Path : /opt/imunify360/venv/lib64/python3.11/site-packages/attr/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/attr/__pycache__/_compat.cpython-311.pyc

�

Q�Dg���H�ddlZddlZddlZddlZddlZddlZddlmZmZddl	m
Z
ej��dkZej
dd�dkZej
dd�dkZej
dd�dkZd	�ZGd
�d��Zd�Ze��Zej��Zd
�ZdS)�N)�Mapping�Sequence)�
_GenericAlias�PyPy�)��	)r�
)r�c�>�tjdtd���dS)Nz�Running interpreter doesn't sufficiently support code object introspection.  Some features like bare super() or accessing __class__ will not work with slotted classes.r)�
stacklevel)�warnings�warn�RuntimeWarning)�args�kws  �l/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/attr/_compat.py�	just_warnrs2���M�	8�	��������c�*�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  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_type-sb���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.�rrrrsT��������
��I�������
�
�
�
�
rrc�d��trd�}|S	tjdkrd�}n�d�}|j}|jdks|jdkrt�|jg}|�|j	��|�
|j|j|j
|j|j|j|j|j|j|j|j|j|jg
��t-j|���fd�}d�}|��jd	}||d
��|jd
krt�	|S#t4$r
t6cYSwxYw)z|Return a function of two arguments (cell, value) which sets
    the value stored in the closure cell `cell` to `value`.
    c�2�|�|f��dSr)�__setstate__��cell�values  r�set_closure_cellz/make_set_closure_cell.<locals>.set_closure_cellOs�����u�h�'�'�'�'�'r)r�c��||_dSr)�
cell_contentsr8s  rr;z/make_set_closure_cell.<locals>.set_closure_cellYs��%*��"�"�"rc���|�dSrr4)r:�force_x_to_be_a_cell�xs  @r�set_first_cellvar_toz3make_set_closure_cell.<locals>.set_first_cellvar_to^s
������r�rAr4c�P��tj�idd|f��}||��dS)N�setterr4)�types�FunctionType)r9r:rE�set_first_freevar_codes   �rr;z/make_set_closure_cell.<locals>.set_closure_cell�s7����+�*�B��"�t�g������u�
�
�
�
�
rc���d��fd�}|S)Nc����Srr4rCs�r�funcz@make_set_closure_cell.<locals>.make_func_with_cell.<locals>.func�s����rr4)rKrAs @r�make_func_with_cellz2make_set_closure_cell.<locals>.make_func_with_cell�s(����A�
�
�
�
�
��Krr�d)�PYPY�sys�version_info�__code__�co_cellvars�co_freevars�AssertionError�co_argcount�append�co_kwonlyargcount�extend�
co_nlocals�co_stacksize�co_flags�co_code�	co_consts�co_names�co_varnames�co_filename�co_name�co_firstlineno�	co_lnotabrF�CodeType�__closure__r>�	Exceptionr)r;rB�corrLr9rHs      @r�make_set_closure_cellrhGs����� �	(�	(�	(� ��K ���v�%�%�
+�
+�
+�
+�

�
�
�&�.�B��~��'�'�2�>�R�+?�+?�$�$��N�#�D��K�K��,�-�-�-��K�K��M��O��K��J��L��K��N��N��J��%��L��N��N��
�
�
�$&+�^�T�%:�"�
�
�
�
�
�	�	�	�#�"�$�$�0��3�����s�#�#�#����$�$� � �%� ��������������s�D	D�D/�.D/c�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_baserm�s��	�|�}�$�$��}���4r)r�platformrO�	threadingrFr�collections.abcrr�typingr�python_implementationrNrP�PY_3_9_PLUS�PY310�PY_3_12_PLUSrrrhr;�local�repr_contextrmr4rr�<module>rxsI����������
�
�
�
�������������-�-�-�-�-�-�-�-� � � � � � �&�x�%�'�'�6�1����r��r�"�f�,�����!����'�������#�w�.�����%�%�%�%�%�%�%�%�PZ �Z �Z �z)�(�*�*���y�� � ������r

?>