Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/astroid/__pycache__/constraint.cpython-39.pyc
Ðазад
a k�h� � @ s d Z ddlmZ ddlZddlmZmZ ddlmZ ddl m Z mZ ddlm Z mZ ddlmZ ejd krxdd l mZ ndd lmZ e r�ddlmZ ee je je je jf ZG dd � d e�ZG dd� de�Zdddd�dd�Zeef�Zdddd�dd�Zd!ddddd�dd �Z dS )"zHClasses representing different types of constraints on inference values.� )�annotationsN)�ABC�abstractmethod)�Iterator)� TYPE_CHECKING�Union)�nodes�util)�InferenceResult)� � )�Self)�basesc @ sT e Zd ZdZdddd�dd�Zeedd ddd d�dd ���Zeddd�dd��ZdS )� Constraintz-Represents a single constraint on a variable.�nodes.NodeNG�bool�None)�node�negate�returnc C s || _ || _d S )N�r r )�selfr r � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/astroid/constraint.py�__init__ s zConstraint.__init__F� _NameNodes�Self | None�r �exprr r c C s dS )z�Return a new constraint for node matched from expr, if expr matches the constraint pattern. If negate is True, negate the constraint. Nr )�clsr r r r r r �match$ s zConstraint.matchr ��inferredr c C s dS )�HReturn True if this constraint is satisfied by the given inferred value.Nr �r r"