$34 GRAYBYTE WORDPRESS FILE MANAGER $27

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.174
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__//constraint.cpython-311.pyc
�

�|oi���D�dZddlmZddlZddlmZmZddlmZddl	m
Z
ddlmZm
Z
mZddlmZejd	krdd
l	mZndd
lmZe
e
je
je
je
jfZGd�de��ZGd
�de��Zd!d�Zeef��Z	d"d�Z	d#d$d �ZdS)%zHClasses representing different types of constraints on inference values.�)�annotationsN)�ABC�abstractmethod)�Iterator)�Union)�bases�nodes�util)�InferenceResult)��)�Selfc�^�eZdZdZdd�Zee	ddd�����Zedd���ZdS)�
Constraintz-Represents a single constraint on a variable.�node�nodes.NodeNG�negate�bool�return�Nonec�$�||_	||_dS)N�rr)�selfrrs   �d/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/astroid/constraint.py�__init__zConstraint.__init__s����	�7����Q�Q�F�cls�
type[Self]�
_NameNodes�expr�Self | Nonec��dS)z�Return a new constraint for node matched from expr, if expr matches
        the constraint pattern.

        If negate is True, negate the constraint.
        N�)rrr rs    r�matchzConstraint.match!����r�inferredrc��dS)�HReturn True if this constraint is satisfied by the given inferred value.Nr#�rr&s  r�satisfied_byzConstraint.satisfied_by,r%rN)rrrrrr�F�
rrrrr rrrrr!�r&rrr)	�__name__�
__module__�__qualname__�__doc__r�classmethodrr$r*r#rrrrs�������7�7�R�R�R�R���NS������^��[���W�W�W��^�W�W�Wrrc�b�eZdZUdZejd��Zded<e	ddd���Z	dd�Z
dS)�NoneConstraintz4Represents an "is None" or "is not None" constraint.Nznodes.Const�
CONST_NONEFrrrrr rrrrr!c�&�t|tj��rvt|j��dkr^|j}|jd\}}|dvrCt
||��r3t
||j��r|dkr|p|dko|}|||���SdS)z�Return a new constraint for node matched from expr, if expr matches
        the constraint pattern.

        Negate the constraint based on the value of negate.
        �r>�is�is notr8r9rN)�
isinstancer	�Compare�len�ops�left�_matchesr5)rrr rr>�op�rights       rr$zNoneConstraint.match6s����d�E�M�*�*�	5�s�4�8�}�}��/A�/A��9�D�����I�B���%�%�%���t�$�$�&�)1�%���)H�)H�&���*�/��S�R�8�^�5R�F�
���s��V�4�4�4�4��trr&rc�t�t|tj��rdS|jt	||j��zS)r(T)r:r
�UninferableBaserr?r5r)s  rr*zNoneConstraint.satisfied_byJs9���h�� 4�5�5�	��4��{�X�h���@�@�@�@rr+r,r-)r.r/r0r1r	�Constr5�__annotations__r2r$r*r#rrr4r41sy�������>�>�)�e�k�$�/�/�J�/�/�/�/��NS������[��&A�A�A�A�A�Arr4r r�frame�nodes.LocalsDictNodeNGr�dict[nodes.If, set[Constraint]]c�T�|}i}|��||ur�|j}t|tj��rt|�|��\}}d}|dkr#tt
||j����}n*|dkr$tt
||jd�����}|r|||<|}|�||u��|S)aHReturns the constraints for the given expression.

    The returned dictionary maps the node where the constraint was generated to the
    corresponding constraint(s).

    Constraints are computed statically by analysing the code surrounding expr.
    Currently this only supports constraints generated from if conditions.
    N�body�orelseT)�invert)�parentr:r	�If�locate_child�set�_match_constraint�test)r rF�current_node�constraints_mappingrM�branch�_�constraintss        r�get_constraintsrXTs���)-�L�;=��
�
"�|�5�'@�'@��$���f�e�h�'�'�		:��+�+�L�9�9�I�F�A�26�K�����!�"3�D�&�+�"F�"F�G�G����8�#�#�!�"3�D�&�+�d�"S�"S�"S�T�T���
:�.9�#�F�+����
"�|�5�'@�'@��r�node1�nodes.NodeNG | bases.Proxy�node2rrc���t|tj��r*t|tj��r|j|jkSt|tj��rDt|tj��r*|j|jkot
|j|j��St|tj��r*t|tj��r|j	|j	kSdS)z$Returns True if the two nodes match.F)
r:r	�Name�name�	Attribute�attrnamer?r rD�value)rYr[s  rr?r?vs����%���$�$�(��E�5�:�)F�)F�(��z�U�Z�'�'��%���)�)�U�j����.P�.P�U��~���/�T�H�U�Z���4T�4T�T��%���%�%�*�*�U�E�K�*H�*H�*��{�e�k�)�)��5rFrrL�Iterator[Constraint]c#�XK�tD]}|�|||��}|r|V�� dS)z3Yields all constraint patterns for node that match.N)�ALL_CONSTRAINT_CLASSESr$)rr rL�constraint_cls�
constraints     rrQrQ�sM����1����#�)�)�$��f�=�=�
��	�������r)r rrFrGrrH)rYrZr[rrrr+)rrr rrLrrrb) r1�
__future__r�sys�abcrr�collections.abcr�typingr�astroidrr	r
�astroid.typingr�version_infor�typing_extensions�
AssignAttrr_�
AssignNamer]rrr4rX�	frozensetrdr?rQr#rr�<module>rss���
O�N�"�"�"�"�"�"�
�
�
�
�#�#�#�#�#�#�#�#�$�$�$�$�$�$�������&�&�&�&�&�&�&�&�&�&�*�*�*�*�*�*���w����������&�&�&�&�&�&�
�5�#�U�_�e�6F��
�R�
S�
�W�W�W�W�W��W�W�W�2 A� A� A� A� A�Z� A� A� A�F����<#��N�#4�5�5��%�	�	�	�	�:?�������r


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
11 Feb 2026 9.30 AM
root / root
0755
__init__.cpython-311.pyc
6.777 KB
20 Jan 2026 1.01 PM
root / root
0644
__pkginfo__.cpython-311.pyc
0.245 KB
20 Jan 2026 1.01 PM
root / root
0644
_ast.cpython-311.pyc
5.535 KB
20 Jan 2026 1.01 PM
root / root
0644
_backport_stdlib_names.cpython-311.pyc
4.015 KB
20 Jan 2026 1.01 PM
root / root
0644
_cache.cpython-311.pyc
1.469 KB
20 Jan 2026 1.01 PM
root / root
0644
arguments.cpython-311.pyc
13.491 KB
20 Jan 2026 1.01 PM
root / root
0644
astroid_manager.cpython-311.pyc
0.602 KB
20 Jan 2026 1.01 PM
root / root
0644
bases.cpython-311.pyc
35.237 KB
20 Jan 2026 1.01 PM
root / root
0644
builder.cpython-311.pyc
23.149 KB
20 Jan 2026 1.01 PM
root / root
0644
const.cpython-311.pyc
1.518 KB
20 Jan 2026 1.01 PM
root / root
0644
constraint.cpython-311.pyc
6.866 KB
20 Jan 2026 1.01 PM
root / root
0644
context.cpython-311.pyc
7.675 KB
20 Jan 2026 1.01 PM
root / root
0644
decorators.cpython-311.pyc
11.925 KB
20 Jan 2026 1.01 PM
root / root
0644
exceptions.cpython-311.pyc
19.979 KB
20 Jan 2026 1.01 PM
root / root
0644
filter_statements.cpython-311.pyc
7.304 KB
20 Jan 2026 1.01 PM
root / root
0644
helpers.cpython-311.pyc
14.671 KB
20 Jan 2026 1.01 PM
root / root
0644
inference.cpython-311.pyc
53.187 KB
20 Jan 2026 1.01 PM
root / root
0644
inference_tip.cpython-311.pyc
3.496 KB
20 Jan 2026 1.01 PM
root / root
0644
manager.cpython-311.pyc
21.736 KB
20 Jan 2026 1.01 PM
root / root
0644
mixins.cpython-311.pyc
1.098 KB
20 Jan 2026 1.01 PM
root / root
0644
modutils.cpython-311.pyc
29.742 KB
20 Jan 2026 1.01 PM
root / root
0644
node_classes.cpython-311.pyc
2.927 KB
20 Jan 2026 1.01 PM
root / root
0644
objects.cpython-311.pyc
16.838 KB
20 Jan 2026 1.01 PM
root / root
0644
protocols.cpython-311.pyc
37.7 KB
20 Jan 2026 1.01 PM
root / root
0644
raw_building.cpython-311.pyc
27.537 KB
20 Jan 2026 1.01 PM
root / root
0644
rebuilder.cpython-311.pyc
102.574 KB
20 Jan 2026 1.01 PM
root / root
0644
scoped_nodes.cpython-311.pyc
0.999 KB
20 Jan 2026 1.01 PM
root / root
0644
test_utils.cpython-311.pyc
4.798 KB
20 Jan 2026 1.01 PM
root / root
0644
transforms.cpython-311.pyc
4.903 KB
20 Jan 2026 1.01 PM
root / root
0644
typing.cpython-311.pyc
2.743 KB
20 Jan 2026 1.01 PM
root / root
0644
util.cpython-311.pyc
8.917 KB
20 Jan 2026 1.01 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF