github pylint-dev/pylint v4.0.5

7 hours ago

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

Don't miss a new pylint release

NewReleases is sending notifications on new releases.