Server IP : 192.158.238.246 / Your IP : 18.226.214.156 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__/ |
Upload File : |
� ��bg� � �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.7/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&