Update dependency pylint to v2.15.4
This MR contains the following updates:
Package | Update | Change |
---|---|---|
pylint (changelog) | patch |
==2.15.0 -> ==2.15.4
|
Release Notes
PyCQA/pylint
v2.15.4
False Positives Fixed
-
Fix the message for
unnecessary-dunder-call
for__aiter__
and__aneext__
. Also only emit the warning whenpy-version
>= 3.10.Closes #7529
Other Bug Fixes
-
Fix bug in detecting
unused-variable
when iterating on variable.Closes #3044
-
Fixed handling of
--
as separator between positional arguments and flags. This was not actually fixed in 2.14.5. -
Report
no-self-argument
rather thanno-method-argument
for methods with variadic arguments.Closes #7507
-
Fixed an issue where
syntax-error
couldn't be raised on files with invalid encodings.Closes #7522
-
Fix false positive for
redefined-outer-name
when aliasingtyping
e.g. ast
and guarding imports undert.TYPE_CHECKING
.Closes #7524
-
Fixed a crash of the
modified_iterating
checker when iterating on a set defined as a class attribute.Closes #7528
-
Fix bug in scanning of names inside arguments to
typing.Literal
. See https://peps.python.org/pep-0586/#literals-enums-and-forward-references for details.Refs #3299
Other Changes
-
Add method name to the error messages of
no-method-argument
andno-self-argument
.Closes #7507
v2.15.3
-
Fixed a crash in the
unhashable-member
checker when using alambda
as a dict key.Closes #7453
-
Fix a crash in the
modified-iterating-dict
checker involving instance attributes.Closes #7461
-
invalid-class-object
does not crash anymore when__class__
is assigned alongside another variable.Closes #7467
-
Fix false positive for
global-variable-not-assigned
when a global variable is re-assigned via anImportFrom
node.Closes #4809
-
Fix false positive for
undefined-loop-variable
infor-else
loops that use a function having a return type annotation ofNoReturn
orNever
.Closes #7311
-
--help-msg
now accepts a comma-separated list of message IDs again.Closes #7471
v2.15.2
-
Fixed a case where custom plugins specified by command line could silently fail.
Specifically, if a plugin relies on the
init-hook
option changingsys.path
before it can be imported, this will now emit abad-plugin-value
message. Before this change, it would silently fail to register the plugin for use, but would load any configuration, which could have unintended effects.Fixes part of #7264.
-
Fix
used-before-assignment
for functions/classes defined in type checking guard.Closes #7368
-
Update
modified_iterating
checker to fix a crash withfor
loops on empty list.Closes #7380
-
The
docparams
extension now considers typing in Numpy style docstrings as "documentation" for themissing-param-doc
message.Refs #7398
-
Fix false positive for
unused-variable
andunused-import
when a name is only used in a string literal type annotation.Closes #3299
-
Fix false positive for
too-many-function-args
when a function call is assigned to a class attribute inside the class where the function is defined.Closes #6592
-
Fix
used-before-assignment
for functions/classes defined in type checking guard.Closes #7368
-
Fix ignored files being linted when passed on stdin.
Closes #4354
-
missing-return-doc
,missing-raises-doc
andmissing-yields-doc
now respect theno-docstring-rgx
option.Closes #4743
-
Don't crash on
OSError
in config file discovery.Closes #7169
-
disable-next
is now correctly scoped to only the succeeding line.Closes #7401
-
Update
modified_iterating
checker to fix a crash withfor
loops on empty list.Closes #7380
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.