Skip to content

v4.0.5

Latest

Choose a tag to compare

@Pierre-Sassoulas Pierre-Sassoulas released this 20 Feb 09:06
· 161 commits to main since this release
88e1ab7

What's new in Pylint 4.0.5?

Release date: 2026-02-20

False Positives Fixed

  • Fix possibly-used-before-assignment false positive when using self.fail() in tests.

    Closes #10743

  • Fixed false positive for logging-unsupported-format when no arguments are provided to logging functions.

    According to Python's logging documentation, no formatting is performed when no arguments are supplied, so strings like logging.error("%test") are valid.

    Closes #10752

  • Fix a false positive for invalid-name where a dataclass field typed with Final
    was evaluated against the class_const regex instead of the class_attribute regex.

    Closes #10790

  • Avoid emitting unspecified-encoding (W1514) when py-version is 3.15+.

    Refs #10791

Other Bug Fixes

  • Fix --known_third_party config being ignored.

    Closes #10801

  • Fixed dynamic color mapping for "fail-on" messages when using multiple reporter/output formats.

    Closes #10825

  • dependency on isort is now set to <9, permitting to use isort 8.

    Closes #10857