What's new in Pylint 4.0.10?
Release date: 2026-09-29
False Positives Fixed
-
Fix false positives for :ref:
unnecessary-lambdawhen a variable referenced in
the called expression is assigned, reassigned, or deleted later in the same scope.Closes #8192
-
Fix a false positive for
unused-argumentin dataclass__new__methods
when the arguments are consumed by a generated__init__method.Closes #9843
-
Fix a false positive for
missing-kwoawhen keyword-only arguments are passed
through a**kwargsdictionary that is not a literal at the call site, for
example one filled withoptions["key"] = valueafter its creation.Closes #10029
-
ungrouped-importsno longer reports imports inside mutually exclusive
OS guard branches (if os.name == "nt":/if sys.platform == "win32":),
matching the existing behavior forsys.version_infoguards.Closes #10460
Other Bug Fixes
-
A
TypeErrorcrash could occur when checking aforloop that
iterates over a subscript with non-numeric constant bounds or a zero
step, e.g.for a, b in {"k": [][0: ""]}.values():.Closes #11472
-
Fix a crash (
AttributeError: 'ClassDef' object has no attribute 'expr') in the
import-private-nameextension when an annotated assignment's value is an
attribute access on a call rooted at a non-Namenode, e.g.x: str = ''().a.Closes #11479