Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/astroid/__pycache__/bases.cpython-39.pyc
Ðазад
a k�h�j � @ s� d Z ddlmZ ddlZddlZddlmZmZ ddlmZm Z m Z ddlmZm Z ddlmZ ddlmZmZmZmZ dd lmZmZmZmZ dd lmZ ddlmZmZmZ ddl m!Z!m"Z"m#Z# er�dd l$m%Z% ddhZ&er�e&�'d� h d�Z(d4dddd�dd�Z)G dd� d�Z*d5ddddd�dd�Z+d d!d"d#d$�d%d&�Z,G d'd(� d(e*�Z-G d)d � d e-�Z.G d*d+� d+e*�Z/G d,d-� d-e/�Z0G d.d/� d/e-�Z1G d0d1� d1e1�Z2G d2d3� d3e-�Z3dS )6zXThis module contains base classes and functions for the nodes and some inference utils. � )�annotationsN)�Iterable�Iterator)� TYPE_CHECKING�Any�Literal)� decorators�nodes)� PY310_PLUS)�CallContext�InferenceContext�bind_context_to_node�copy_context)�AstroidTypeError�AttributeInferenceError�InferenceError�NameInferenceError)�objectmodel)�InferenceErrorInfo�InferenceResult�SuccessfulInferenceResult)�Uninferable�UninferableBase� safe_infer)� Constraintzbuiltins.propertyzabc.abstractpropertyz enum.property> ZLazyPropertyZ lazyattributeZlazy�DynamicClassAttribute�cached_propertyZ lazy_propertyZcache_readonlyZreifyZlazy_attributeZlazypropertyZcachedproperty�!nodes.FunctionDef | UnboundMethod�InferenceContext | None�bool)�meth�context�returnc s� | j |d�}t�|�rdS dd� |D �� t� fdd�tD ��rBdS | jsLdS | jjpVdD ]�}t||d�}|d u sXt|t �r|qXt|tj �rX|jD ]J}t|tj�s�q�|� |j�\}}t|tj�r�|jd kr�|jd kr� dS q�qXdS )N�r! Tc S s$ h | ]}t |t�s|�d �d �qS )�.���)� isinstancer �split��.0�name� r+ �}/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/astroid/bases.py� <setcomp>J s �z_is_property.<locals>.<setcomp>c 3 s | ]}|� v V qd S �Nr+ r( ��strippedr+ r, � <genexpr>O � z_is_property.<locals>.<genexpr>Fr+ �builtins�property)�decoratornames� PROPERTIES�intersection�any�POSSIBLE_PROPERTIESr r r r&