Bump pylint to 3.3.7, update changelog #10367
Merged
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 3.3.7?
Release date: 2025-05-04
False Positives Fixed
Comparisons between two calls to
type()
won't raise anunidiomatic-typecheck
warning anymore, consistent with the behavior applied only for==
previously.Closes Inconsistency between
is
/is not
and==
/!=
when comparing types forunidiomatic-typecheck
#10161Other Bug Fixes
Fixed a crash when importing a class decorator that did not exist with the same name as a class attribute after the class definition.
Closes AttributeError: 'NoneType' object has no attribute 'scope' in variables checker #10105
Fix a crash caused by malformed format strings when using
.format
with keyword arguments.Closes AstroidError when checking against sample bad-format-string code #10282
Using a slice as a class decorator now raises a
not-callable
message instead of crashing. A lot of checks that dealt with decorators (too many to list) are now shortcut if the decorator can't immediately be inferred to a function or class definition.Closes AttributeError: 'Slice' object has no attribute 'name' when a slice is used as a class decorator #10334
Other Changes
The algorithm used for
no-member
suggestions is now more efficient and cuts thecalculation when the distance score is already above the threshold.
Refs Speed up the generation of no-member suggestions #10277