Derived from the flake8-2020 linter.
What it does#
Checks for comparisons that test
sys.version_info against an integer.
Why is this bad?#
Comparisons based on the current minor version number alone can cause subtle bugs and would likely lead to unintended effects if the Python major version number were ever incremented (e.g., to Python 4).
sys.version_info to a tuple, including the major and
minor version numbers, to future-proof the code.