What's new in Pylint 4.1.2?
Release date: 2026-10-03
False Positives Fixed
-
Fixed a false positive
unbalanced-tuple-unpackingwhen unpacking a tuple
concatenation whose elements have several possible values.Fixed by upgrading astroid to 4.3.3.
Closes #2621
Other Bug Fixes
-
Fixed a crash when calling
__bases__on a class.Fixed by upgrading astroid to 4.3.3.
Closes #11491
-
Fix a crash (
astroid-error) when the class of a called attribute cannot
be fully inferred, for example when the attribute is used as awith
statement target or inside a comprehension.Closes #11492
-
Fix a crash when a name bound by a
typestatement (a TypeVar) is used in awithstatement.Closes #11510
-
Fixed a crash (
TypeError) in the variables checker when checking a class
whose metaclass name binding has no line number, for example a class defined
withmetaclass=__annotations__.Closes #11511
-
Fix a crash in the
using-final-decorator-in-unsupported-versioncheck
whenimport finalis used.Closes #11521
-
Fix a crash when a plugin passes
confidence=Nonetoadd_message, as
pylint-pytestdoes, for a message that is disabled.confidence=Noneis
accepted again and meansUNDEFINED, like in pylint 4.0. Passing it
explicitly toadd_message,add_ignored_messageorMessagenow emits a
DeprecationWarning: it will raise an error in pylint 5.0.Closes #11530