AlkantarClanX12
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__/constraint.cpython-311.pyc |
� �܋f� � �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.6/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&