
    e
                    Z    d dl mZ d dlZd dlmZ d dlmZ  G d dej                        Zy)    )annotationsN)_CallbackActionDEFAULT_PYLINT_HOMEc                  *    e Zd ZdZddZedd       Zy)_HelpFormatterz3Formatter for the help message emitted by argparse.c                   |j                   sJ |j                   }t        |t              r|S d|vr[|j                  t        j
                  ur?t        j                  t        j                  g}|j                  s|j                  |v r|dz  }|S )z3Copied from argparse.ArgumentDefaultsHelpFormatter.z
%(default)z (default: %(default)s))
help
isinstancer   defaultargparseSUPPRESSOPTIONALZERO_OR_MOREoption_stringsnargs)selfactionhelp_stringdefaulting_nargss       >/usr/lib/python3/dist-packages/pylint/config/help_formatter.py_get_help_stringz_HelpFormatter._get_help_string   s    {{{kk fo.{*~~X%6%66$,$5$5x7L7L#M ((FLL<L,L#<<K    c                     dt          dS )Nz
Environment variables:
    The following environment variables are used:
        * PYLINTHOME    Path to the directory where persistent data for the run will
                        be stored. If not found, it defaults to 'a-  '.
        * PYLINTRC      Path to the configuration file. See the documentation for the method used
                        to search for configuration file.

Output:
    Using the default text output, the message format is :

        MESSAGE_TYPE: LINE_NUM:[OBJECT:] MESSAGE

    There are 5 kind of message types :
        * (I) info,         for informational messages
        * (C) convention,   for programming standard violation
        * (R) refactor,     for bad code smell
        * (W) warning,      for python specific problems
        * (E) error,        for probable bugs in the code
        * (F) fatal,        if an error occurred which prevented pylint from doing further processing.

Output status code:
    Pylint should leave with following bitwise status codes:
        * 0 if everything went fine
        * 1 if a fatal message was issued
        * 2 if an error message was issued
        * 4 if a warning message was issued
        * 8 if a refactor message was issued
        * 16 if a convention message was issued
        * 32 on usage error
r    r   r   get_long_descriptionz#_HelpFormatter.get_long_description    s"    B CVAV W	 	r   N)r   zargparse.Actionreturnz
str | None)r   str)__name__
__module____qualname____doc__r   staticmethodr   r   r   r   r   r      s    =   r   r   )	
__future__r   r   pylint.config.callback_actionsr   pylint.constantsr   RawDescriptionHelpFormatterr   r   r   r   <module>r(      s%   
 #  : 03X99 3r   