Your IP : 216.73.216.196
B
A!p\h � @ s� d Z ddlmZ edddg�Zedd�Zedd �Zed
d�Zedd
�ZeeeegZG dd� d�Z dd� Z
G dd� de �ZG dd� de�ZG dd� de�Z
G dd� de�ZG dd� de �ZdZdS )zInterfaces for Pylint objects� )�
namedtuple�
Confidence�name�description�HIGHzNo false positive possible.� INFERENCEz"Warning based on inference result.�INFERENCE_FAILUREz)Warning based on inference with failures.� UNDEFINEDz0Warning without any associated confidence level.c @ s e Zd ZdZedd� �ZdS )� InterfacezBase class for interfaces.c C s
t || �S )N)�
implements)�cls�instance� r �B/opt/alt/python37/lib/python3.7/site-packages/pylint/interfaces.py�is_implemented_by! s zInterface.is_implemented_byN)�__name__�
__module__�__qualname__�__doc__�classmethodr r r r r r
s r
c C s@ t | dd�}t|ttf�s |f}x|D ]}t||�r&dS q&W dS )z^Return true if the give object (maybe an instance or class) implements
the interface.
Z__implements__r TF)�getattr�
isinstance�list�tuple�
issubclass)�objZ interfaceZkimplementsZimplementedinterfacer r r r &