Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pylint
/
testutils
/
__pycache__
[ HOME ]
Exec
Submit
decorator.cpython-311.pyc
� � h� � �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.8/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&