Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pylint/checkers/__pycache__/__init__.cpython-39.pyc
Ðазад
a n�h� � @ s� d Z ddlmZ ddlmZmZ ddlmZmZm Z ddl mZ ddlm Z mZmZ erdddlmZ dd d dd�d d�Zddd�dd�Zg d�ZdS )aO Utilities methods and classes for checkers. Base id of standard checkers (used in msg and report ids): 01: base 02: classes 03: format 04: import 05: misc 06: variables 07: exceptions 08: similar 09: design_analysis 10: newstyle 11: typecheck 12: logging 13: string_format 14: string_constant 15: stdlib 16: python3 (This one was deleted but needs to be reserved for consistency with old messages) 17: refactoring . . . 24: non-ascii-names 25: unicode 26: unsupported_version 27: private-import 28-50: not yet used: reserved for future internal checkers. This file is not updated. Use script/get_unused_message_id_category.py to get the next free checker id. 51-99: perhaps used: reserved for external checkers The raw_metrics checker has no number associated since it doesn't emit any messages nor reports. XXX not true, emit a 07 report ! � )�annotations)� TYPE_CHECKING�Literal)�BaseChecker�BaseRawFileChecker�BaseTokenChecker)�DeprecatedMixin)�LinterStats�diff_string�register_plugins)�PyLinterr zLinterStats | Nonez,Literal['duplicated_lines', 'message_types']z list[str])�stats� old_stats� stat_type�returnc C sJ g }|dkrTd| j d fd| j d fg}|rJd|j d fd|j d fg}q�ddg}n^|dkr�d| jfd| jfd | jfd | jfg}|r�d|jfd|jfd |jfd |jfg}ng d�}t|�D ]�\}}|d }|| d } t| t�r�t| |�n| } t|t��r|d �nt |�}t| t��r| d �nt | �}|� |d �dd�||| f� q�|S )z�Get values listed in <columns> from <stats> and <old_stats>, and return a formatted list of values. The return value is designed to be given to a ureport.Table object �duplicated_lines�nb_duplicated_lines�percent_duplicated_lines)r �NC)r r Z message_types� convention�refactor�warning�error))r r )r r )r r )r r � z.3fr �_� )r r r r r � enumerate� isinstance�floatr �str�extend�replace) r r r �lines�new�old�index�value� new_value� old_valueZdiff_strZnew_strZold_str� r) ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pylint/checkers/__init__.py�table_lines_from_stats; sP ����� ���� r+ r �None)�linterr c C s t | td � dS )z0Initialize linter with checkers in this package.r N)r �__path__)r- r) r) r* � initialize� s r/ )r r r r/ r r N)�__doc__� __future__r �typingr r Zpylint.checkers.base_checkerr r r Zpylint.checkers.deprecatedr Zpylint.utilsr r r Zpylint.lintr r+ r/ �__all__r) r) r) r* �<module> s &E
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка