Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/astroid/__pycache__/decorators.cpython-39.pyc
Ðазад
a k�h*! � @ s8 d Z ddlmZ ddlZddlZddlZddlZddlmZm Z ddl mZ ddlm Z ddlmZ ddlmZ dd lmZ ejd kr�ddl mZ nddlmZ ed�Zed �Zdd� Zddd�dd�Zddd�dd�Ze �� �rd dddd�dd�Zd!dddd�dd�Zn(d"dddd�dd�Zd#dddd�dd�ZdS )$z(A few useful function/method decorators.� )�annotationsN)�Callable� Generator)�TypeVar)�util)�InferenceContext)�InferenceError)�InferenceResult)� � )� ParamSpec�_R�_Pc C s$ t �| �d| fddd�dd��}|S )z�Return the given infer function wrapped to handle the path. Used to stop inference if the node has already been looked at for a given `InferenceContext` to prevent infinite recursion NzInferenceContext | Noner )�context�returnc { sn |du rt � }|�| �rdS t� }|| |fi |��D ]4}|jjdkrL|j}n|}||vr4|V |�|� q4dS )z"Wrapper function handling context.N�Instance)r �push�set� __class__�__name__Z_proxied�add)�noder Z_func�kwargs�yielded�resZares� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/astroid/decorators.py�wrapped% s zpath_wrapper.<locals>.wrapped�� functools�wraps)�funcr r r r �path_wrapper s �r"