관리-도구
편집 파일: decorator.cpython-311.pyc
� �܋f� � �F � d dl mZ d dlZd dlmZ d dlmZ d dlmZ dd �Z dS )� )�annotationsN)�Callable)�Any)�CheckerTestCase�kwargsr �return�4Callable[[Callable[..., None]], Callable[..., None]]c � � � d� fd�}|S )z�Decorator 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. �fun�Callable[..., None]r c �L �� � t j � � � d � �fd�� � }|S ) N�selfr �argsr �test_function_kwargsr �Nonec � �� �� � � D ] \ }}| j � ||� � �!| j � � � �| g|�R i |�� dS )zSet option via argparse.N)�items�linter� set_option�checker�open)r r r �key�valuer r s ���k/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/testutils/decorator.py�_forwardz.set_config.<locals>._wrapper.<locals>._forward sx �� � %�l�l�n�n� 3� 3� ��U���&�&�s�E�2�2�2�2� �L�������C��4�t�4�4�4�3�4�4�4�4�4� )r r r r r r r r )� functools�wraps)r r r s ` �r �_wrapperzset_config.<locals>._wrapper sC ��� � ��� � � 5� 5� 5� 5� 5� 5� � � 5� �r )r r r r � )r r s ` r � set_configr! s( �� �� � � � � � �Or )r r r r ) � __future__r r �collections.abcr �typingr �"pylint.testutils.checker_test_caser r! r r r �<module>r&