Derived from the flake8-pyi linter.
What it does#
Checks for uses of comparators other than
sys.version_info checks in
.pyi files. All other comparators, such
==, are banned.
Why is this bad?#
<= has unexpected behavior
and can lead to bugs.
sys.version_info > (3, 8) will also match
sys.version_info <= (3, 8) will not match