Your IP : 216.73.216.196


Current Path : /opt/alt/python37/lib/python3.7/site-packages/pylint/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/pylint/__pycache__/interfaces.cpython-37.pyc

B

A!p\h�@s�dZddlmZedddg�Zedd�Zedd	�Zed
d�Zedd
�ZeeeegZGdd�d�Z	dd�Z
Gdd�de	�ZGdd�de�ZGdd�de�Z
Gdd�de�ZGdd�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@seZdZdZedd��ZdS)�	InterfacezBase class for interfaces.cCs
t||�S)N)�
implements)�cls�instance�r�B/opt/alt/python37/lib/python3.7/site-packages/pylint/interfaces.py�is_implemented_by!szInterface.is_implemented_byN)�__name__�
__module__�__qualname__�__doc__�classmethodrrrrrr
sr
cCs@t|dd�}t|ttf�s |f}x|D]}t||�r&dSq&WdS)z^Return true if the give object (maybe an instance or class) implements
    the interface.
    Z__implements__rTF)�getattr�
isinstance�list�tuple�
issubclass)�objZ	interfaceZkimplementsZimplementedinterfacerrrr&s

rc@s eZdZdZdd�Zdd�ZdS)�ICheckerzhThis is a base interface, not designed to be used elsewhere than for
    sub interfaces definition.
    cCsdS)z3called before visiting project (i.e set of modules)Nr)�selfrrr�open8sz
IChecker.opencCsdS)z2called after visiting project (i.e set of modules)Nr)rrrr�close;szIChecker.closeN)rrrrrrrrrrr3src@seZdZdZdd�ZdS)�IRawCheckerz;interface for checker which need to parse the raw file
    cCsdS)zY process a module

        the module's content is accessible via astroid.stream
        Nr)rZastroidrrr�process_moduleCszIRawChecker.process_moduleN)rrrrr!rrrrr ?sr c@seZdZdZdd�ZdS)�
ITokenCheckerz:Interface for checkers that need access to the token list.cCsdS)z[Process a module.

        tokens is a list of all source code tokens in the file.
        Nr)r�tokensrrr�process_tokensMszITokenChecker.process_tokensN)rrrrr$rrrrr"Jsr"c@seZdZdZdS)�IAstroidCheckerzX interface for checker which prefers receive events according to
    statement type
    N)rrrrrrrrr%Tsr%c@s eZdZdZdd�Zdd�ZdS)�	IReporterzL reporter collect messages and display results encapsulated in a layout
    cCsdS)z Handle the given message object.Nr)r�msgrrr�handle_message^szIReporter.handle_messagecCsdS)z8display results encapsulated in the layout tree
        Nr)rZlayoutrrr�display_reportsaszIReporter.display_reportsN)rrrrr(r)rrrrr&Zsr&)r r%r"r&N)r�collectionsrrrrrr	ZCONFIDENCE_LEVELSr
rrr r"r%r&�__all__rrrr�<module>s