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!dZ eef Z d"dZ d#d$d ZdS )%zHClasses representing different types of constraints on inference values. )annotationsN)ABCabstractmethod)Iterator)Union)basesnodesutil)InferenceResult) )Selfc ^ e Zd ZdZddZee ddd Zedd ZdS ) Constraintz-Represents a single constraint on a variable.nodenodes.NodeNGnegateboolreturnNonec $ || _ || _ d S )Nr r )selfr r s d/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/astroid/constraint.py__init__zConstraint.__init__ s 7QQ Fcls type[Self] _NameNodesexprSelf | Nonec dS )zReturn 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&