
    e                    D    d dl mZ d dlZd dlmZ d dlmZ d dlmZ ddZ	y)    )annotationsN)Callable)Any)CheckerTestCasec                      d fd}|S )zDecorator for setting an option on the linter.

    Passing the args and kwargs back to the test function itself
    allows this decorator to be used on parameterized test cases.
    c                X     t        j                         	 	 	 	 	 	 	 	 d fd       }|S )Nc                    j                         D ]!  \  }}| j                  j                  ||       # | j                  j	                           | g|i | y)zSet option via argparse.N)itemslinter
set_optioncheckeropen)selfargstest_function_kwargskeyvaluefunkwargss        </usr/lib/python3/dist-packages/pylint/testutils/decorator.py_forwardz.set_config.<locals>._wrapper.<locals>._forward   sW    
 %lln 3
U&&sE23 LL4t434    )r   r   r   r   r   r   returnNone)	functoolswraps)r   r   r   s   ` r   _wrapperzset_config.<locals>._wrapper   sE    		
	5!
	5*-
	5GJ
	5
	5 

	5 r   )r   Callable[..., None]r   r    )r   r   s   ` r   
set_configr       s      Or   )r   r   r   z4Callable[[Callable[..., None]], Callable[..., None]])

__future__r   r   collections.abcr   typingr   "pylint.testutils.checker_test_caser   r    r   r   r   <module>r%      s   
 #  $  >r   