AlkantarClanX12

Your IP : 3.12.34.150


Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__/util.cpython-311.pyc

�

�܋fy��&�UddlmZddlZddlZddlZddlmZddlZejdkr	ddlm	Z	m
Z
nddlm	Z	m
Z
d�Zdd�Z
Gd�d
��Ze��Zded<Gd�d��ZGd�de��ZGd�de��Zdd�Zd�Zdd�ZdS)�)�annotationsN)�Any)��)�Final�Literalc�H�Gd�dtj��}||��S)Nc��eZdZdd�ZdS)�(lazy_descriptor.<locals>.DescriptorProxyNc�8�|j�||��S�N)�	__class__�__get__)�self�instance�owners   �]/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/astroid/util.pyrz0lazy_descriptor.<locals>.DescriptorProxy.__get__s���>�)�)�$��9�9�9�r
)�__name__�
__module__�__qualname__r�rr�DescriptorProxyrs(������	:�	:�	:�	:�	:�	:rr��lazy_object_proxy�Proxy)�objrs  r�lazy_descriptorrsB��:�:�:�:�:�+�1�:�:�:��?�3���r�module_name�str�return�lazy_object_proxy.Proxyc�2��tj�fd���S)Nc�4��tjd�zd��S)N�.�astroid)�	importlib�
import_module�rs�r�<lambda>zlazy_import.<locals>.<lambda>s���	�'��k�(9�9�E�E�rrr)s`r�lazy_importr+s$����"�E�E�E�E���rc�@�eZdZdZdd�ZeZdd�Zdd�Zdd
�ZeZ	d�Z
dS)�UninferableBasez�Special inference object, which is returned when inference fails.

    This is meant to be used as a singleton. Use astroid.util.Uninferable to access it.
    r!�Literal['Uninferable']c��dS)N�Uninferabler�rs r�__repr__zUninferableBase.__repr__)s���}r�namer rc��|dkrtd���|�d��r0|�d��rt�||��S|dkrt�||��S|S)N�nextz next method should not be called�__�accept)�AttributeError�
startswith�endswith�object�__getattribute__)rr3s  rr<z UninferableBase.__getattribute__.s}���6�>�>� �!C�D�D�D��?�?�4� � �	7�T�]�]�4�%8�%8�	7��*�*�4��6�6�6��8����*�*�4��6�6�6��r�args�kwargsc��|Sr
r)rr=r>s   r�__call__zUninferableBase.__call__7s���r�Literal[False]c��dS)NFrr1s r�__bool__zUninferableBase.__bool__:s���urc�,�|�|��Sr
)�visit_uninferable)r�visitors  rr7zUninferableBase.accept?s���(�(��.�.�.rN)r!r.)r3r r!r)r=rr>rr!r-)r!rA)rrr�__doc__r2�__str__r<r@rC�__nonzero__r7rrrr-r-#s���������
�����G��������������K�/�/�/�/�/rr-rr0c��eZdZdZdS)�BadOperationMessagez�Object which describes a TypeError occurred somewhere in the inference chain.

    This is not an exception, but a container object which holds the types and
    the error which occurred.
    N)rrrrGrrrrKrKFs���������rrKc�<�eZdZdZd�Zed���Zd�Zd	d�ZdS)
�BadUnaryOperationMessagez8Object which describes operational failures on UnaryOps.c�0�||_||_||_dSr
)�operand�op�error)rrOrPrQs    r�__init__z!BadUnaryOperationMessage.__init__Qs����������
�
�
rc�.�td��}|jS)N�helpers)r+�object_type)rrTs  r�_object_type_helperz,BadUnaryOperationMessage._object_type_helperVs���i�(�(���"�"rc�^�|�|��}t|t��rdS|Sr
)rV�
isinstancer-)rr�objtypes   r�_object_typez%BadUnaryOperationMessage._object_type[s1���*�*�3�/�/���g��/�/�	��4��rr!r c��t|jd��r
|jj}nF|�|j��}t|d��r|j}n|���}d}|�|j|��S)Nr3z!bad operand type for unary {}: {})�hasattrrOr3rZ�	as_string�formatrP)r�operand_typerU�msgs    rrHz BadUnaryOperationMessage.__str__bs����4�<��(�(�	7��<�,�L�L��+�+�D�L�9�9�K��{�F�+�+�
7�*�/��� +�4�4�6�6��1���z�z�$�'�<�0�0�0rN�r!r )	rrrrGrR�propertyrVrZrHrrrrMrMNsg������B�B����
�#�#��X�#����1�1�1�1�1�1rrMc� �eZdZdZd�Zdd�ZdS)�BadBinaryOperationMessagez.Object which describes type errors for BinOps.c�0�||_||_||_dSr
)�	left_type�
right_typerP)rrfrPrgs    rrRz"BadBinaryOperationMessage.__init__ts��"���$�������rr!r c�f�d}|�|j|jj|jj��S)Nz1unsupported operand type(s) for {}: {!r} and {!r})r^rPrfr3rg)rr`s  rrHz!BadBinaryOperationMessage.__str__ys)��A���z�z�$�'�4�>�#6���8L�M�M�MrNra)rrrrGrRrHrrrrdrdqsC������8�8����
N�N�N�N�N�Nrrd�boolc��|j}|j}||upt||��}tj|jj�d|j�d�td���|S)Nz: is deprecated and slated for removal in astroid 2.0, use z instead�)�
stacklevel)�__wrapped__r�
issubclass�warnings�warnr�PendingDeprecationWarning)�cls�other�wrapped�	other_cls�is_instance_ofs     r�_instancecheckrw~so���o�G���I��	�)�K�Z�	�7�-K�-K�N��M�!$��!7�!7�!7��9I�9I�9I�	K�!��	�����rc���t|tjftjdt
d���}|�fd���S)z7Get a Proxy from the given name to the given node type.r)r�__instancecheck__c����Sr
r)�	node_types�rr*zproxy_alias.<locals>.<lambda>�s����r)�typerrr;�__dict__rw)�
alias_namer{�proxys ` r�proxy_aliasr��sQ�����	�	 �"����5�!/�	
�	
�
�
�E��5�"�"�"�"�#�#�#rc�H�td�tjD����S)z�Return True if any other than the default DeprecationWarning filter is enabled.

    https://docs.python.org/3/library/warnings.html#default-warning-filter
    c3�|K�|]7}tt|d��o|ddko|ddkV��8dS)rkr�ignorer�__main__N)rn�DeprecationWarning)�.0�filters  r�	<genexpr>z(check_warnings_filter.<locals>.<genexpr>�si������
�	�%�v�a�y�1�1�	$��1�I��!�	$��1�I��#������r)�anyro�filtersrrr�check_warnings_filterr��s7��
����&�	�����r)rr r!r")r!ri)�
__future__rr'�sysro�typingrr�version_inforr�typing_extensionsrr+r-r0�__annotations__rKrMrdrwr�r�rrr�<module>r�s���#�"�"�"�"�"�"�����
�
�
�
�����������������v���%�%�%�%�%�%�%�%�%�0�0�0�0�0�0�0�0� � � �����/�/�/�/�/�/�/�/�@%�_�&�&��&�&�&�&��������� 1� 1� 1� 1� 1�2� 1� 1� 1�F
N�
N�
N�
N�
N� 3�
N�
N�
N�
�
�
�
�
$�
$�
$�
�
�
�
�
�
r