관리-도구
편집 파일: unsupported_version.cpython-311.pyc
� �܋f� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z mZmZ erddl mZ G d� d e� � Zdd�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)�PyLinterc � � e Zd ZdZdZddd�Zdd�Z ed � � dd�� � Z ed � � dd�� � Z dd�Z dS )�UnsupportedVersionCheckerzpChecker for features that are not supported by all python versions indicated by the py-version setting. �unsupported_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 a 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.)�W2601�W2602�return�Nonec �T � | j j j }|dk | _ |dk | _ dS )z*Initialize visit variables and statistics.)� � )r � N)�linter�config� py_version� _py36_plus� _py38_plus)�selfr s �t/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/checkers/unsupported_version.py�openzUnsupportedVersionChecker.open/ s+ � ��[�'�2� �$��.���$��.����� r �node�nodes.JoinedStrc �F � | j s| � d|�� � dS dS )zCheck f-strings.r �r! N)r �add_message�r r! s r �visit_joinedstrz)UnsupportedVersionChecker.visit_joinedstr5 s; � � �� Q����D�4��P�P�P�P�P� Q� Qr r �nodes.Decoratorsc �0 � | � |� � dS )zCheck decorators.N)�_check_typing_finalr&