관리-도구
편집 파일: bad_chained_comparison.cpython-311.pyc
� �܋f� � � � d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z erd dl mZ ed� � Z ed� � Z ed � � Z G d � de� � Zdd�ZdS )� )�annotations)� TYPE_CHECKING)�nodes)�BaseChecker)�HIGH)�PyLinter)�<z<=�>z>=z!=z==)�iszis not)�inznot inc �. � e Zd ZdZdZddiZdd �Zdd �ZdS )�BadChainedComparisonCheckerz5Checks for unintentional usage of chained comparison.�bad-chained-comparison�W3601)zTSuspicious %s-part chained comparison using semantically incompatible operators (%s)r z�Used when there is a chained comparison where one expression is part of two comparisons that belong to different semantic groups ("<" does not mean the same thing as "is", chaining them in "0 < x is None" is probably a mistake).� operators� list[str]�return�boolc � �� t t t fD ]}|d |v r|��t �fd�|D � � � � S )Nr c 3 � �K � | ]}|�v V � � d S �N� )�.0�o�groups ��w/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/checkers/bad_chained_comparison.py� <genexpr>zHBadChainedComparisonChecker._has_diff_semantic_groups.<locals>.<genexpr>* s'