What's New in Pylint 3.2#

:Release:3.2 :Date: TBA

Summary -- Release highlights#

What's new in Pylint 3.2.0?#

Release date: TBA

New Features#

  • Understand six.PY2 and six.PY3 for conditional imports.

    Closes #3501 (#3501)

  • A new github reporter has been added. This reporter returns the output of pylint in a format that Github can use to automatically annotate code. Use it with pylint --output-format=github on your Github Workflows.

    Closes #9443. (#9443)

New Checks#

  • Add check possibly-used-before-assignment when relying on names after an if/else switch when one branch failed to define the name, raise, or return.

    Closes #1727 (#1727)

False Negatives Fixed#

  • If and Try nodes are now checked for useless return statements as well.

    Closes #9449. (#9449)