What's new in Pylint 4.0.3?
Release date: 2025-11-13
False Positives Fixed
-
Add Enum dunder methods
_generate_next_value_,_missing_,_numeric_repr_,_add_alias_, and_add_value_alias_to the list passed to--good-dunder-names.Closes #10435
-
Fixed false positive for
invalid-namewithtyping.Annotated.Closes #10696
-
Fix false positive for
f-string-without-interpolationwith template strings
when using format spec.Closes #10702
-
Fix a false positive when an UPPER_CASED class attribute was raising an
invalid-namewhen typed withFinal.Closes #10711
-
Fix a false positive for
unbalanced-tuple-unpackingwhen a tuple is assigned to a function call and the structure of the function's return value is ambiguous.Closes #10721
Other Bug Fixes
-
Make 'ignore' option work as expected again.
Closes #10669
-
Fix crash for
consider-using-assignment-exprwhen a variable annotation without assignment
is used as theiftest expression.Closes #10707
-
Fix crash for
prefer-typing-namedtupleandconsider-math-not-floatwhen
asliceobject is called.Closes #10708