Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/astroid/interpreter/__pycache__/objectmodel.cpython-39.pyc
Ðазад
a k�h�� � @ sH d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m Z ddlmZm Z mZ ddlZddlmZmZmZ ddlmZmZ dd lmZmZmZ dd lmZ ddlmZ ddlmZm Z er�dd l!m"Z" dZ#e$e#�Z%dd� Z&ddd�dd�Z'G dd� d�Z(G dd� de(�Z)G dd� de(�Z*G dd� de(�Z+G dd� de(�Z,G dd � d e(�Z-G d!d"� d"e(�Z.G d#d$� d$e*�Z/G d%d&� d&e*e.�Z0G d'd(� d(e0�Z1G d)d*� d*e(�Z2G d+d,� d,e2�Z3G d-d.� d.e3�Z4G d/d0� d0e3�Z5G d1d2� d2e3�Z6G d3d4� d4e3�Z7e4e6e7e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5d5�Z8G d6d7� d7e(�Z9G d8d9� d9e(�Z:dS ):a� Data object model, as per https://docs.python.org/3/reference/datamodel.html. This module describes, at least partially, a data object model for some of astroid's nodes. The model contains special attributes that nodes such as functions, classes, modules etc have, such as __doc__, __class__, __module__ etc, being used when doing attribute lookups over nodes. For instance, inferring `obj.__class__` will first trigger an inference of the `obj` variable. If it was successfully inferred, then an attribute `__class__ will be looked for in the inferred object. This is the part where the data model occurs. The model is attached to those nodes and the lookup mechanism will try to see if attributes such as `__class__` are defined by the model or not. If they are defined, the model will be requested to return the corresponding value of that attribute. Thus the model can be viewed as a special part of the lookup mechanism. � )�annotationsN)�Iterator)� lru_cache)� TYPE_CHECKING�Any�Literal)�bases�nodes�util)�InferenceContext�copy_context)�AttributeInferenceError�InferenceError� NoDefault)�AstroidManager)�node_classes)�InferenceResult�SuccessfulInferenceResult)�PropertyZattr_c s` t j| | j| j| j| jd�� � fdd�t|�� �D �}dd� |�� D �}� � tt ||��� � S )N��parent�lineno� col_offset� end_lineno�end_col_offsetc s g | ]}t j|� d ��qS )��valuer �r �Const)�.0r ��obj� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/astroid/interpreter/objectmodel.py� <listcomp>; s z _dunder_dict.<locals>.<listcomp>c S s g | ]}|d �qS )���r"