Bump pylint to 4.0.3, update changelog #10741
Merged
+53
−30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 Enum dunder method
_generate_next_value_not allowed #10435Fixed false positive for
invalid-namewithtyping.Annotated.Closes Naming requirements for annotated types depend on Python version (pylint 4 regression) #10696
Fix false positive for
f-string-without-interpolationwith template stringswhen using format spec.
Closes f-string-without-interpolation false positive with t-strings when using format spec #10702
Fix a false positive when an UPPER_CASED class attribute was raising an
invalid-namewhen typed withFinal.Closes Pylint C0103 (invalid-name) contradiction for class-level typing.Final attributes. #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 pylint tracks the wrong return type of an overloaded function #10721
Other Bug Fixes
Make 'ignore' option work as expected again.
Closes 'ignore' option doesn't work in pylint 4.0.0 anymore #10669
Fix crash for
consider-using-assignment-exprwhen a variable annotation without assignmentis used as the
iftest expression.Closes AttributeError: 'NoneType' object has no attribute 'as_string' in code_style checker #10707
Fix crash for
prefer-typing-namedtupleandconsider-math-not-floatwhena
sliceobject is called.Closes AttributeError: 'Slice' object has no attribute 'qname' in code_style checker #10708