Uname : Linux serv1.rebootns.com 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
Soft : LiteSpeed
Ip : 139.99.125.122
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
astroid
/
__pycache__
[ HOME ]
Exec
Submit
File Name : constraint.cpython-311.pyc
� G�~�6� � �D � d Z ddlmZ ddlZddlmZmZ ddlmZ ddl m Z ddlmZm Z mZ ddlmZ ej d k rdd l mZ ndd lmZ e e j e j e j e j f Z G d� de� � Z G d � de� � Zd!d�Z eef� � 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 �^ � e Zd ZdZdd�Zee ddd�� � � � Zedd�� � ZdS )� Constraintz-Represents a single constraint on a variable.�node�nodes.NodeNG�negate�bool�return�Nonec �$ � || _ || _ d S )N�r r )�selfr r s �c/builddir/build/BUILD/cloudlinux-venv-1.0.8/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� )r r r r s r �matchzConstraint.match! � � � � r �inferredr c � � dS )�HReturn True if this constraint is satisfied by the given inferred value.Nr# �r r&