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-formatwhen 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-namewhere a dataclass field typed withFinal
was evaluated against theclass_constregex instead of theclass_attributeregex.Closes #10790
-
Avoid emitting
unspecified-encoding(W1514) whenpy-versionis 3.15+.Refs #10791