Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pylint/checkers/__pycache__/unsupported_version.cpython-39.pyc
Ðазад
a n�hA � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z mZmZ ddl mZ erdddlmZ G d d � d e�Zddd �dd�ZdS )zmChecker for features used that are not supported by all python versions indicated by the py-version setting. � )�annotations)� TYPE_CHECKING)�nodes)�BaseChecker)�only_required_for_messages� safe_infer�uninferable_final_decorators)�HIGH)�PyLinterc @ s4 e Zd ZdZdZddddddd �Zd d�dd �Zed�dd d�dd��Zed�dd d�dd��Z ed�dd d�dd��Z ed�dd d�dd��Zdd d�dd�Zed �d!d d�d"d#��Z ed �d$d d�d%d&��Zed �d'd d�d(d)��Zed*�d+d d�d,d-��Zed*�d.d d�d/d0��Zed*�d1d d�d2d3��Zd4S )5�UnsupportedVersionCheckerzpChecker for features that are not supported by all python versions indicated by the py-version setting. Zunsupported_version)zNF-strings are not supported by all versions included in the py-version setting�%using-f-string-in-unsupported-versionz]Used when the py-version set by the user is lower than 3.6 and pylint encounters an f-string.)zPtyping.final is not supported by all versions included in the py-version setting�,using-final-decorator-in-unsupported-versionznUsed when the py-version set by the user is lower than 3.8 and pylint encounters a ``typing.final`` decorator.)zUException groups are not supported by all versions included in the py-version setting�-using-exception-groups-in-unsupported-versionzsUsed when the py-version set by the user is lower than 3.11 and pylint encounters ``except*`` or `ExceptionGroup``.)zaGeneric type syntax (PEP 695) is not supported by all versions included in the py-version setting�0using-generic-type-syntax-in-unsupported-versionzfUsed when the py-version set by the user is lower than 3.12 and pylint encounters generic type syntax.)zYAssignment expression is not supported by all versions included in the py-version setting�2using-assignment-expression-in-unsupported-versionz|Used when the py-version set by the user is lower than 3.8 and pylint encounters an assignment expression (walrus) operator.)z^Positional-only arguments are not supported by all versions included in the py-version setting�1using-positional-only-args-in-unsupported-versionzkUsed when the py-version set by the user is lower than 3.8 and pylint encounters positional-only arguments.)ZW2601ZW2602ZW2603ZW2604ZW2605ZW2606�None)�returnc C s6 | j jj}|dk| _|dk| _|dk| _|dk| _dS )z*Initialize visit variables and statistics.)� � )r � )r � )r � N)�linter�config� py_version� _py36_plus� _py38_plus�_py311_plus�_py312_plus)�selfr � r! ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pylint/checkers/unsupported_version.py�openH s zUnsupportedVersionChecker.openr znodes.JoinedStr)�noder c C s | j s| jd|td� dS )zCheck f-strings.r �r$ Z confidenceN)r �add_messager �r r$ r! r! r"