
    c                        d Z ddlmZ ddlmZ ddlmZ ddlmZ	 ddl
mZ ddlmZ ddlmZ ddZ G d de	          ZdS )zwClasses and functions used to mimic normal pylint runs.

This module is considered private and can change at any time.
    )annotations)Sequence)Any)Run)UNUSED_PARAM_SENTINEL)BaseReporter)PYLINTRCargs	list[str]returnc                t    t          d | D                       s|                     ddt                      | S )zGAdd a default pylintrc with the rcfile option in a list of pylint args.c              3     K   | ]}d |v V  	dS )z--rcfileN ).0args     5lib/python3.11/site-packages/pylint/testutils/_run.py	<genexpr>z/_add_rcfile_default_pylintrc.<locals>.<genexpr>   s'      11SzS 111111    r   z	--rcfile=)anyinsertr	   )r
   s    r   _add_rcfile_default_pylintrcr      sC    11D11111 /A-8--...Kr   c                  ,     e Zd ZdZddefd fdZ xZS )_Runa  Like Run, but we're using an explicitly set empty pylintrc.

    We don't want to use the project's pylintrc during tests, because
    it means that a change in our config could break tests.
    But we want to see if the changes to the default break tests.
    NTr
   Sequence[str]reporterBaseReporter | Noneexitbooldo_exitr   r   Nonec                    t          t          |                    }t                                          ||||           d S )N)r   listsuper__init__)selfr
   r   r   r   	__class__s        r   r$   z_Run.__init__%   s<     ,DJJ77xw77777r   )
r
   r   r   r   r   r   r   r   r   r    )__name__
__module____qualname____doc__r   r$   __classcell__)r&   s   @r   r   r      sW          )-,8 8 8 8 8 8 8 8 8 8 8r   r   N)r
   r   r   r   )r*   
__future__r   collections.abcr   typingr   pylint.lintr   LintRunpylint.lint.runr   pylint.reporters.base_reporterr   !pylint.testutils.lint_module_testr	   r   r   r   r   r   <module>r4      s   
 
 # " " " " " $ $ $ $ $ $       & & & & & & 1 1 1 1 1 1 7 7 7 7 7 7 6 6 6 6 6 6   8 8 8 8 87 8 8 8 8 8r   