
    eu                    t    d dl mZ d dlmZmZ d dlmZ d dlmZm	Z	 d dl
mZ  ed       G d d	             Zy
)    )annotations)asdict	dataclass)	MSG_TYPES)	UNDEFINED
Confidence)MessageLocationTupleT)unsafe_hashc                      e Zd ZU dZded<   ded<   ded<   ded<   ded<   ded	<   ded
<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   	 	 	 	 	 	 	 	 	 	 	 	 ddZddZedd       Zy)Messagez=This class represent a message to be issued by the reporters.strmsg_idsymbolmsgCcategoryr   
confidenceabspathpathmoduleobjintlinecolumnz
int | Noneend_line
end_columnc                   || _         || _        || _        |d   | _        t        |d      | _        |xs t        | _        |j                  | _        |j                  | _	        |j                  | _
        |j                  | _        |j                  | _        |j                  | _        |j                  | _        |j                  | _        y )Nr   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )selfr   r   locationr   r   s         8/usr/lib/python3/dist-packages/pylint/message/message.py__init__zMessage.__init__!   s     !&),$1	''MM	oo<<MM	oo ))"--    c                8     |j                   di t        |       S )zFormat the message according to the given template.

        The template format is the one of the format method :
        cf. https://docs.python.org/2/library/string.html#formatstrings
         )formatr   )r   templates     r    r%   zMessage.format8   s     x...r"   c           
         t        | j                  | j                  | j                  | j                  | j
                  | j                  | j                  | j                        S )N)	r	   r   r   r   r   r   r   r   r   )r   s    r    r   zMessage.location@   sG    #LLIIKKHHIIKKMMOO	
 		
r"   N)r   r   r   r   r   r	   r   r   r   zConfidence | NonereturnNone)r&   r   r(   r   )r(   r	   )	__name__
__module____qualname____doc____annotations__r!   r%   propertyr   r$   r"   r    r   r      s    GKK	H
FML
IK	H
IK.. . '	.
 . &. 
../ 

 

r"   r   N)
__future__r   dataclassesr   r   pylint.constantsr   pylint.interfacesr   r   pylint.typingr	   r   r$   r"   r    <module>r5      s4   
 # ) & 3 . t<
 <
 <
r"   