You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix a false positive for invalid-name (C0103) on names assigned in an if __name__ == "__main__": block. Such a block reads like a script body, so
a name there is now accepted if it matches either the constant or the variable
naming style.
Fix false positives for :ref:invalid-str-returned, :ref:invalid-repr-returned,
:ref:invalid-format-returned, :ref:invalid-bytes-returned, :ref:invalid-hash-returned,
:ref:invalid-index-returned, :ref:invalid-length-returned,
:ref:invalid-length-hint-returned, :ref:invalid-getnewargs-returned and
:ref:invalid-getnewargs-ex-returned when the returned value is an instance of a
subclass of the expected builtin type, such as self in a str subclass or a namedtuple.
Fix false positives for :ref:bad-string-format-type when the argument is an
instance of a subclass of int, float or str, such as bool or an IntEnum member formatted with %d.
Fix a crash in the docparams extension when a raised name does not infer to an exception, such as raise sum or raise some_module. Such objects have no ancestors(), which aborted the whole file with an astroid-error fatal message.
Fix a crash in the use-yield-from checker (AttributeError: 'Subscript' object has no attribute 'name') when a loop target is a subscript, attribute, or tuple.
Fix a crash in the docparams extension (AttributeError: 'AssignName' object has no attribute 'decorators') when a class has non-function attributes sharing the name of a property setter.
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer TIP This summary will be updated as you push new changes.
❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This PR contains the following updates:
4.0.7→4.0.8Release Notes
pylint-dev/pylint (pylint)
v4.0.8Compare Source
What's new in Pylint 4.0.8?
Release date: 2026-08-29
False Positives Fixed
Fix a false positive for :ref:
unspecified-encodingwhen anopencall uses a modeargument that cannot be inferred.
Closes #10201
Fix a false positive for
invalid-name(C0103) on names assigned in anif __name__ == "__main__":block. Such a block reads like a script body, soa name there is now accepted if it matches either the constant or the variable
naming style.
Closes #10766
Fix false positives for :ref:
invalid-str-returned, :ref:invalid-repr-returned,:ref:
invalid-format-returned, :ref:invalid-bytes-returned, :ref:invalid-hash-returned,:ref:
invalid-index-returned, :ref:invalid-length-returned,:ref:
invalid-length-hint-returned, :ref:invalid-getnewargs-returnedand:ref:
invalid-getnewargs-ex-returnedwhen the returned value is an instance of asubclass of the expected builtin type, such as
selfin astrsubclass or anamedtuple.Closes #11306
Fix false positives for :ref:
bad-string-format-typewhen the argument is aninstance of a subclass of
int,floatorstr, such asboolor anIntEnummember formatted with%d.Closes #11315
False Negatives Fixed
redundant-unittest-assertnow also flagsassertEqualandassertNotEqualwhen both compared values are constants, e.g.
self.assertEqual(5, 5).Closes #11321
Other Bug Fixes
Fix a crash in the
docparamsextension when a raised name does not infer to an exception, such asraise sumorraise some_module. Such objects have noancestors(), which aborted the whole file with anastroid-errorfatal message.Closes #11228
Fix a crash in the
use-yield-fromchecker (AttributeError: 'Subscript' object has no attribute 'name') when a loop target is a subscript, attribute, or tuple.Closes #11286
Fix a crash in the
docparamsextension (AttributeError: 'AssignName' object has no attribute 'decorators') when a class has non-function attributes sharing the name of a property setter.Closes #11287
Other Changes
Upgrade the
isortupper bound soisort9 can be installed alongside pylint.Closes #11351
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.