Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pylint
/
checkers
/
__pycache__
[ HOME ]
Exec
Submit
File Name : bad_chained_comparison.cpython-311.pyc
� � h� � � � 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.8/venv/lib/python3.11/site-packages/pylint/checkers/bad_chained_comparison.py� <genexpr>zHBadChainedComparisonChecker._has_diff_semantic_groups.<locals>.<genexpr>* s'