ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/pylint/config/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/pylint/config/__pycache__/option.cpython-311.pyc

�

�܋fC!��6�UddlmZddlZddlZddlZddlZddlZddlmZm	Z	ddlm
Z
ddlmZddl
mZd4d�Zd5d�Zd6d�Zd7d�Zd8d�Zd9d�Zd8d�Zd:d �Zd;d"�Zd<d$�Zejeeed%�eeeed&�d'�d(�eed)�Zd*ed+<d=d/�Zd>d?d1�ZGd2�d3ej ��Z dS)@�)�annotationsN)�Callable�Sequence)�Pattern)�Any)�utils�_r�name�str�value�str | list[str] | tuple[str]�return�
Sequence[str]c�*�tj|��S�N)r�
_check_csv�r	r
rs   �e/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/config/option.py�_csv_validatorrs����E�"�"�"��str | re.Pattern[str]�re.Pattern[str]c�N�t|d��r|Stj|��S)N�pattern)�hasattr�re�compilers   r�_regexp_validatorrs+���u�i� � ����
�:�e���r�str | list[str]�list[re.Pattern[str]]c�B�����fd�t��|��D��S)Nc�2��g|]}t��|����S�)r)�.0�valr	r
s  ��r�
<listcomp>z)_regexp_csv_validator.<locals>.<listcomp>'s&���V�V�V���a��s�+�+�V�V�Vr)rrs`` r�_regexp_csv_validatorr'$s0����W�V�V�V�V�~�a��u�7U�7U�V�V�V�Vr�str | list[Pattern[str]]�list[Pattern[str]]c
�h�t|t��r|Sg}t|||��D]�}|�t	jt
tj|�����	dd��dztj|���
��z������|S)N�\z\\�|)�
isinstance�listr�appendrrr�pathlib�PureWindowsPath�replace�as_posix)r	r
r�patternsr%s     r�_regexp_paths_csv_validatorr5*s����%��������H��a��u�-�-�
�
������J��G�+�C�0�0�1�1�9�9�$��G�G����)�#�.�.�7�7�9�9�:�
�
�	
�	
�	
�	
��Or�choices�	list[Any]c�F�||vrd}tj||||fz���|S�Nz-option %s: invalid value: %r, should be in %s)�optparse�OptionValueError)r6r
r�msgs    r�_choice_validatorr=;s4���G���=���'��t�U�G�.D�(D�E�E�E��Lr�opt�boolc���t|t��rt|��St|t��r|���}|dvrdS|dvrdSd}tj|||fz���)N>�y�yes�trueT>�n�no�falseFzIoption %s: invalid yn value %r, should be in (y, yes, true, n, no, false))r-�intr?r�lowerr:r;�r>r	rr<s    r�
_yn_validatorrJBs����%������E�{�{���%��������
�
���$�$�$��t��$�$�$��u�
U�C�
�
#�C�3��,�$6�
7�
7�7rc�x�tj|��}|D]"}||vrd}tj||||fz����#|Sr9)rrr:r;)r6r
r�values�	csv_valuer<s      r�_multiple_choice_validatorrNOs\��
�
�e�
$�
$�F��N�N�	��G�#�#�A�C��+�C�4��G�2L�,L�M�M�M�$��Mrc�Z�|sd}tj|���tj|��S)Nzindent string can't be empty.)r:r;r�_unquoterIs    r�_non_empty_string_validatorrQXs2���-�-���'��,�,�,��>�%� � � r�optparse.Optionc�.�t|j||��Sr)rNr6�r>r
rs   r�#_multiple_choices_validating_optionrUas��&���T�5���r�tuple[int, int, int]c���t|t��s\	td�|�d��D����}n.#ttf$rtjd|�d���d�wxYw|S)Nc3�4K�|]}t|��V��dSr)rG)r$r%s  r�	<genexpr>z(_py_version_validator.<locals>.<genexpr>ls(����?�?�s�#�c�(�(�?�?�?�?�?�?r�.zInvalid format for z', should be version string. E.g., '3.8')r-�tuple�split�
ValueError�AttributeErrorr:r;rs   r�_py_version_validatorr_is����e�U�#�#��	��?�?�e�k�k�#�.>�.>�?�?�?�?�?�E�E���N�+�	�	�	��+�S�d�S�S�S����
�	�����Ls�,A�+A/c�.�tj|pd��S)N�)rr)rs r�<lambda>rbys��b�j���B�7�7�rc�0�t|d||��S�Nr6)r=rTs   rrbrb~s��'8��Y���u�'U�'U�rc�0�t|d||��Srd�rNrTs   rrbrbs��+E��I���e�,�,�rc�0�t|d||��SrdrfrTs   rrbrb�s��0J��I���e�1�1�r)�stringrG�float�glob_paths_csv�regexp�
regexp_csv�regexp_paths_csv�csv�yn�choice�
confidence�multiple_choice�non_empty_string�
py_versionz@dict[str, Callable[[Any, str, Any], Any] | Callable[[Any], Any]]�
VALIDATORS�opttype�optdict�optionc	��|tvrtd|�d����	t||||��S#t$rH	t||��cYS#t$r"}tj|�d|�d|����|�d}~wwxYwwxYw)NzUnsupported type "�"z value (z) should be of type )ru�	TypeError�	Exceptionr:r;)rvrwrxr�es     r�_call_validatorr~�s����j� � ��7�W�7�7�7�8�8�8���'�"�7�F�E�:�:�:������	��g�&�u�-�-�-�-�-���	�	�	��+��I�I�5�I�I��I�I����
�����	�������s-�5�
B�A�B�
B�!A>�>B�Brac�^�	|d}n#t$r|cYSwxYwt||||��S)z�Return a validated value for an option according to its type.

    optional argument name is only used for error message formatting
    �type)�KeyErrorr~)rrwr
�_types    r�	_validater��sJ��
��������������������5�'�4��7�7�7s���c�&��eZdZejjdzZejjddgzZejejj��Ze	ed<e
ed<eed<eed<e	ed<e
ed	<eed
<eed<eed<eed
<d�fd�Zdd�Zeejjd<dd�Z�xZS)�Option)
rjrkrlrmrnrorqrrrsrt�hide�levelrjrkrlrmrnrorqrrrsrt�optsr�attrsr�Nonec����tjdtd���t��j|i|��t|d��r|jrtj|_	dSdSdS)Nz<Option has been deprecated and will be removed in pylint 3.0�)�
stacklevelr�)
�warnings�warn�DeprecationWarning�super�__init__rr�r:�
SUPPRESS_HELP�help)�selfr�r��	__class__s   �rr�zOption.__init__�s�����
�J���	
�	
�	
�	
�
	�����$�(�%�(�(�(��4�� � �	/�T�Y�	/� �.�D�I�I�I�	/�	/�	/�	/rc�~�|jdvr�|j�tjd|���t	|jt
tf��sPtjdtt|j�����d��dz|���dS|j�tjd|j��|���dS)N>rprqrrz/must supply a list of choices for type 'choice'z1choices must be a list of strings ('%s' supplied)�'�z!must not supply choices for type )	r�r6r:�OptionErrorr-r[r.rr\)r�s r�
_check_choicezOption._check_choice�s����9�C�C�C��|�#��*�E�t�����d�l�U�D�M�:�:�
��*�G��$�t�|�,�,�-�-�3�3�C�8�8��;�<��	���
�
��\�
%��&�A�D�I�A�A�4���
�&�
%rr�r>rrL�parserrGc�R�t|jt��sJ�|jr|jjdkrdS|�||��}|jdkr.t||j��}|r|�|��|}|�	|j
|j||||��S)Nzpylint.lint.runr��named)r-�destr�callback�
__module__�
convert_valuer��getattr�update�take_action�action)r�r>rrLr��existents      r�processzOption.process�s����$�)�S�)�)�)�)�)��=�	�T�]�5�9J�J�J��1��"�"�3��.�.���9�����v�t�y�1�1�H��
!�����&�&�&� �������T�Y��U�F�F�S�S�Sr)r�rr�rrr�)rr�)
r>rrrrLrr�rrrG)�__name__r��__qualname__r:r��TYPES�ATTRS�copy�TYPE_CHECKERrrr'r5rJrUrQr_r�r��
CHECK_METHODSr��
__classcell__)r�s@rr�r��s&��������O�!�%�
�E�
�O�!�V�W�$5�5�E��4�9�X�_�9�:�:�L�%3�L�!�"�.�L���!6�L���'B�L�#�$�(�L���&�L���!D�L���&I�L�"�#�'B�L�#�$�!6�L���	/�	/�	/�	/�	/�	/�����$(5�H�O�!�!�$�T�T�T�T�T�T�T�Trr�)r	rr
rrr
rr)r	rr
rrrrr)r	rr
rrrrr )r	rr
rrr(rr))r6r7r
rrrrr)r>rr	rrrrr?)r>rr	rrrrr)r>rRr
rrrrr)r	rr
rrrrrV)
rvrrwrrxrrrrr)ra)rrrwrr
rrr)!�
__future__rr�r:r0rr��collections.abcrrr�typingr�pylintrrrr'r5r=rJrNrQrUr_rPrGriru�__annotations__r~r�r�r#rr�<module>r�s@��
#�"�"�"�"�"�"�������������	�	�	�	�����.�.�.�.�.�.�.�.�������������������#�#�#�#�����W�W�W�W�����"����
8�
8�
8�
8�����!�!�!�!����������n��
�$�7�7�'�3��
�U�U�����4�'�%P�P�
�����,����	8�	8�	8�	8�	8�JT�JT�JT�JT�JT�X�_�JT�JT�JT�JT�JTr

Zerion Mini Shell 1.0