Skip to content

Commit 20af036

Browse files
Bump pylint to 2.15.4, update changelog
1 parent 78f8423 commit 20af036

File tree

13 files changed

+69
-36
lines changed

13 files changed

+69
-36
lines changed

doc/user_guide/checkers/features.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ Classes checker Messages
249249
or a sequence is permitted.
250250
:invalid-slots-object (E0236): *Invalid object %r in __slots__, must contain only non empty strings*
251251
Used when an invalid (non-string) object occurs in __slots__.
252-
:no-method-argument (E0211): *Method has no argument*
252+
:no-method-argument (E0211): *Method %r has no argument*
253253
Used when a method which should have the bound instance as first argument has
254254
no argument defined.
255-
:no-self-argument (E0213): *Method should have "self" as first argument*
255+
:no-self-argument (E0213): *Method %r should have "self" as first argument*
256256
Used when a method has an attribute different the "self" as first argument.
257257
This is considered as an error since this is a so common convention that you
258258
shouldn't break it!

doc/whatsnew/2/2.15/index.rst

+65
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,71 @@ Marc Byrne became a maintainer, welcome to the team !
2929

3030
.. towncrier release notes start
3131
32+
What's new in Pylint 2.15.4?
33+
----------------------------
34+
Release date: 2022-10-10
35+
36+
37+
False Positives Fixed
38+
---------------------
39+
40+
- Fix the message for ``unnecessary-dunder-call`` for ``__aiter__`` and
41+
``__aneext__``. Also
42+
only emit the warning when ``py-version`` >= 3.10.
43+
44+
Closes #7529 (`#7529 <https://github.com/PyCQA/pylint/issues/7529>`_)
45+
46+
47+
48+
Other Bug Fixes
49+
---------------
50+
51+
- Fix bug in detecting ``unused-variable`` when iterating on variable.
52+
53+
Closes #3044 (`#3044 <https://github.com/PyCQA/pylint/issues/3044>`_)
54+
55+
- Fixed handling of ``--`` as separator between positional arguments and flags.
56+
This was not actually fixed in 2.14.5.
57+
58+
Closes #7003, Refs #7096 (`#7003
59+
<https://github.com/PyCQA/pylint/issues/7003>`_)
60+
61+
- Report ``no-self-argument`` rather than ``no-method-argument`` for methods
62+
with variadic arguments.
63+
64+
Closes #7507 (`#7507 <https://github.com/PyCQA/pylint/issues/7507>`_)
65+
66+
- Fixed an issue where ``syntax-error`` couldn't be raised on files with
67+
invalid encodings.
68+
69+
Closes #7522 (`#7522 <https://github.com/PyCQA/pylint/issues/7522>`_)
70+
71+
- Fix false positive for ``redefined-outer-name`` when aliasing ``typing``
72+
e.g. as ``t`` and guarding imports under ``t.TYPE_CHECKING``.
73+
74+
Closes #7524 (`#7524 <https://github.com/PyCQA/pylint/issues/7524>`_)
75+
76+
- Fixed a crash of the ``modified_iterating`` checker when iterating on a set
77+
defined as a class attribute.
78+
79+
Closes #7528 (`#7528 <https://github.com/PyCQA/pylint/issues/7528>`_)
80+
81+
- Fix bug in scanning of names inside arguments to `typing.Literal`.
82+
See https://peps.python.org/pep-0586/#literals-enums-and-forward-references
83+
for details.
84+
85+
Refs #3299 (`#3299 <https://github.com/PyCQA/pylint/issues/3299>`_)
86+
87+
88+
Other Changes
89+
-------------
90+
91+
- Add method name to the error messages of ``no-method-argument`` and
92+
``no-self-argument``.
93+
94+
Closes #7507 (`#7507 <https://github.com/PyCQA/pylint/issues/7507>`_)
95+
96+
3297
What's new in Pylint 2.15.3?
3398
----------------------------
3499
Release date: 2022-09-19

doc/whatsnew/fragments/3044.bugfix

-3
This file was deleted.

doc/whatsnew/fragments/3299.bugfix

-4
This file was deleted.

doc/whatsnew/fragments/7003.bugfix

-4
This file was deleted.

doc/whatsnew/fragments/7507.bugfix

-4
This file was deleted.

doc/whatsnew/fragments/7507.other

-3
This file was deleted.

doc/whatsnew/fragments/7522.bugfix

-3
This file was deleted.

doc/whatsnew/fragments/7524.bugfix

-4
This file was deleted.

doc/whatsnew/fragments/7528.bugfix

-3
This file was deleted.

doc/whatsnew/fragments/7529.false_positive

-4
This file was deleted.

pylint/__pkginfo__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from __future__ import annotations
1111

12-
__version__ = "2.15.3"
12+
__version__ = "2.15.4"
1313

1414

1515
def get_numversion_from_version(v: str) -> tuple[int, int, int]:

tbump.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github_url = "https://github.com/PyCQA/pylint"
22

33
[version]
4-
current = "2.15.3"
4+
current = "2.15.4"
55
regex = '''
66
^(?P<major>0|[1-9]\d*)
77
\.

0 commit comments

Comments
 (0)