Derived from the pyupgrade linter.
Fix is sometimes available.
What it does#
Checks for conditional blocks gated on
that are outdated for the minimum supported Python version.
Why is this bad?#
In Python, code can be conditionally executed based on the active
Python version by comparing against the
If a code block is only executed for Python versions older than the minimum supported version, it should be removed.