Repository navigation
Update dependency pylint to v4.1.3 - #995
Conversation
Needs ReviewI recommend reviewing this upgrade before merging because a failing
Fix SuggestionsWe identified 2 fixable issues in this upgrade.
AI Assistant PromptCopy prompt for AI assistantWhat we checked
Dependency UsageNo usage of the analyzed dependencies was found in this repository.
View 3 more usages
Changes
View 69 more changes
References (7)[1]: pylint is declared as a pinned dev dependency ( algorithm-exercises-py/Pipfile Line 14 in 75d545d [2]: [3]: pylint is also invoked locally via algorithm-exercises-py/Makefile Line 131 in 75d545d [4]: algorithm-exercises-py/.pylintrc Line 120 in 75d545d [5]: algorithm-exercises-py/.pylintrc Line 434 in 75d545d [6]: The algorithm-exercises-py/Pipfile.lock Line 316 in 75d545d [7]: The fossabot analyzed this PR using dependency research and AI. View this analysis on the web |
No IssuesNo security issues were detected in the SAST scan. The code changes appear to follow secure coding practices. fossabot analyzed this PR using SAST security analysis and AI (changed files only). |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #995 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 106 106
Lines 1884 1884
Branches 311 311
=========================================
Hits 1884 1884 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|



This PR contains the following updates:
==4.1.2→==4.1.3Release Notes
pylint-dev/pylint (pylint)
v4.1.3Compare Source
What's new in Pylint 4.1.3?
Release date: 2026-10-11
False Positives Fixed
Fixed a false positive for
attribute-defined-outside-initwhen anattribute is assigned inside the setter of an old-style, non-decorator
property(fget, fset)call. The decorator form (@property/@x.setter) was already exempted by the fix for #409; the classiccall form was not.
Closes #3325
Fix a false positive for
used-before-assignmentwhen a name bound by an earliertarget of the same assignment is used by a later target, as in
a = b[a] = 0.Closes #5955
Fix a
no-memberfalse positive in a comprehension inside a branch thatcannot run, such as
if sys.platform == "win32":on Linux. Like the rest ofthe branch, the comprehension is no longer checked for missing members.
Closes #7240
Fix a false positive for
used-before-assignmentwhen a name bound by a tupleor list target of a
withitem is used by a later item of the samewithstatement.Closes #7545
Fix false positives such as
not-callable,not-an-iterable,unpacking-non-sequenceandno-memberon the result of a function whosebody is only
..., like@overloadand.pyistubs. Such calls wereinferred as returning
None. This affectedsqlalchemy.func,pydantic.Field, and thetorchfunctions wrapped by_add_docstr,such as
torch.linalg.qr.Closes #8138
Closes #9218
Closes #9354
Closes #10087
Fix a false positive for
protected-accesswhen a subclass of a subscriptedgeneric base, such as
class Child(Parent[T]), accesses a protected memberthrough that base, such as
Parent._foo(self).Closes #8600
Avoid emitting
unreachablefor ayieldimmediately afterraiseorsys.exit()that marks a function as a generator, matching the existinghandling of
return.Closes #8909
Fix a false positive for
super-init-not-calledin.pyistub files, whereevery
__init__body is...and cannot call the parent's__init__.Closes #9096
Fix a false positive for
possibly-used-before-assignmentwhen a lambdauses its parameters, including from a nested lambda, and that name is assigned
later in the module.
Closes #9126
Fix a false positive for
useless-parent-delegationwhen a keyword-onlyparameter is passed to the parent under the same keyword but with a different value.
Closes #9226
Fix a false positive for
unused-argumentin.pyistub files, wherefunction bodies are
...and cannot use their arguments.Closes #9417
Fix a false positive for
used-before-assignmentwhen a name assigned with anassignment expression in the condition of a comprehension is used in its element,
for example
[y for x in data if (y := f(x))].Closes #9460
Fixed false positive
arguments-differandsignature-differsfortyping.overloadstubs. Overload stubs in a subclass are no longer comparedto the overridden method, and an overridden method with overloads is compared
through its implementation instead of its first stub.
Closes #10186
Closes #5264
Stop emitting
redefined-variable-typewhen the bare_variable isreused to discard values of different types.
Closes #10374
Allow the
__main__module name in thecamelCase,PascalCaseandUPPER_CASEnaming styles without reportinginvalid-name.Closes #10442
Fixed a false positive for
unexpected-keyword-argwhen a decorator thatreturns its argument unchanged is stacked above a decorator accepting
**kwargs.Closes #10831
Fix
invalid-namefalse positives for module-level all-caps aliases thatpreserve the name of an external callable.
Closes #11012
redefined-builtinno longer warns for method parameters that retain abuilt-in name from an overridden method.
Closes #11438
Fixed a false positive for
useless-suppressionofline-too-longwhen a#inside a string literal comes before the# pylint: disable=line-too-longcomment.Closes #11440
Fix a false positive for
unnecessary-ellipsiswhen an ellipsis is thesole body statement of a
Protocolmethod defined inside a conditional blocksuch as
if TYPE_CHECKING:.Closes #11459
Fix a false positive for
unnecessary-negationwhen negating a comparisonbetween instances of a
setorfrozensetsubclass.Refs #11513
Other Bug Fixes
Fix
pyreversehanging or crashing with aRecursionErrorwhen--all-associated(-S) follows an attribute whose inferred class is rebuilt byastroid on every inference, such as a
numpyarray.Closes #3602
Fix a crash in
pyreversewhen a diagram includes a class created bynamedtuple, or anargparse.Namespace.Closes #10767
The "difference" column of the "Messages by category" and "Duplication" reports
(
--reports=y) now shows the change since the previous run instead of repeatingthe previous count.
Closes #11520
Fixed
nested-min-maxsuggesting a non-equivalent rewrite when an innermin/maxcall had multiple arguments.Refs #11593
Using several output formats that all write to stdout (for example
--output-format=colorized,no-header)now raises an error instead of printing every message more than once.
Closes #11597
Fixed an
IndexErrorcrash in the typecheck checker when anEnumclass defines an__init__method without arguments.Closes #11608
Fix a crash in the
duplicate-codechecker whenmin-similarity-linesis set to0.The checker is now disabled in that case, as documented.
Closes #11625
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.