What's new in Pylint 3.3.9?
Release date: 2025-10-05
False Positives Fixed
-
Fix used-before-assignment for PEP 695 type aliases and parameters.
Closes #9815
-
No longer flag undeprecated functions in
importlib.resources
as deprecated.Closes #10593
-
Fix false positive
inconsistent-return-statements
when usingquit()
orexit()
functions.Closes #10508
-
Fix false positive
undefined-variable
(E0602) for for-loop variable shadowing patterns likefor item in item:
when the variable was previously defined.Closes #10562
Other Bug Fixes
-
Fixed crash in 'unnecessary-list-index-lookup' when starting an enumeration using
minus the length of an iterable inside a dict comprehension when the len call was only
made in this dict comprehension, and not elsewhere. Also changed the approach,
to use inference in all cases but the simple ones, so we don't have to fix crashes
one by one for arbitrarily complex expressions in enumerate.Closes #10510