Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pylint/pyreverse/__pycache__/inspector.cpython-39.pyc
Ðазад
a n�h�4 � @ sN d Z ddlmZ ddlZddlZddlZddlmZmZ ddl m Z ddlmZ ddl Z ddl mZ ddlmZ dd lmZ e e egejf eegeej f Zd'ddd dd�dd�ZG dd� d�ZG dd� d�ZG dd� deej�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Zed ej d fd!d"dd#d dd$�d%d&�Z!dS )(z|Visitor doing some post-processing on the astroid tree. Try to resolve definitions (namespace) dictionary, relationship... � )�annotationsN)�ABC�abstractmethod)�Callable)�Optional)�nodes)� constants)�utilsFzCallable[[str], nodes.Module]�str�boolznodes.Module | None)�func�modname�verbose�returnc C sl |rt d|� d�� z | |�W S tjjyN } zt |� W Y d }~n"d }~0 tyf t�� Y n0 d S )Nzparsing z...)�print�astroid� exceptionsZAstroidBuildingError� Exception� traceback� print_exc)r r r �exc� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pylint/pyreverse/inspector.py�_astroid_wrapper s r c @ sB e Zd ZdZdddd�dd�Zdddd�dd �Zdd �dd�Zd S )�IdGeneratorMixInz1Mixin adding the ability to generate integer uid.r �int�None)�start_valuer c C s || _ d S �N�Zid_count��selfr r r r �__init__1 s zIdGeneratorMixIn.__init__c C s || _ dS )zInit the id counter.Nr r r r r �init_counter4 s zIdGeneratorMixIn.init_counter�r c C s | j d7 _ | j S )zGenerate a new identifier.� r �r! r r r �generate_id8 s zIdGeneratorMixIn.generate_idN)r )r )�__name__� __module__�__qualname__�__doc__r"