Skip to content

Commit

Permalink
Bump pylint to 2.15.4, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Oct 10, 2022
1 parent 78f8423 commit 20af036
Show file tree
Hide file tree
Showing 13 changed files with 69 additions and 36 deletions.
4 changes: 2 additions & 2 deletions doc/user_guide/checkers/features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ Classes checker Messages
or a sequence is permitted.
:invalid-slots-object (E0236): *Invalid object %r in __slots__, must contain only non empty strings*
Used when an invalid (non-string) object occurs in __slots__.
:no-method-argument (E0211): *Method has no argument*
:no-method-argument (E0211): *Method %r has no argument*
Used when a method which should have the bound instance as first argument has
no argument defined.
:no-self-argument (E0213): *Method should have "self" as first argument*
:no-self-argument (E0213): *Method %r should have "self" as first argument*
Used when a method has an attribute different the "self" as first argument.
This is considered as an error since this is a so common convention that you
shouldn't break it!
Expand Down
65 changes: 65 additions & 0 deletions doc/whatsnew/2/2.15/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,71 @@ Marc Byrne became a maintainer, welcome to the team !

.. towncrier release notes start
What's new in Pylint 2.15.4?
----------------------------
Release date: 2022-10-10


False Positives Fixed
---------------------

- Fix the message for ``unnecessary-dunder-call`` for ``__aiter__`` and
``__aneext__``. Also
only emit the warning when ``py-version`` >= 3.10.

Closes #7529 (`#7529 <https://github.com/PyCQA/pylint/issues/7529>`_)



Other Bug Fixes
---------------

- Fix bug in detecting ``unused-variable`` when iterating on variable.

Closes #3044 (`#3044 <https://github.com/PyCQA/pylint/issues/3044>`_)

- Fixed handling of ``--`` as separator between positional arguments and flags.
This was not actually fixed in 2.14.5.

Closes #7003, Refs #7096 (`#7003
<https://github.com/PyCQA/pylint/issues/7003>`_)

- Report ``no-self-argument`` rather than ``no-method-argument`` for methods
with variadic arguments.

Closes #7507 (`#7507 <https://github.com/PyCQA/pylint/issues/7507>`_)

- Fixed an issue where ``syntax-error`` couldn't be raised on files with
invalid encodings.

Closes #7522 (`#7522 <https://github.com/PyCQA/pylint/issues/7522>`_)

- Fix false positive for ``redefined-outer-name`` when aliasing ``typing``
e.g. as ``t`` and guarding imports under ``t.TYPE_CHECKING``.

Closes #7524 (`#7524 <https://github.com/PyCQA/pylint/issues/7524>`_)

- Fixed a crash of the ``modified_iterating`` checker when iterating on a set
defined as a class attribute.

Closes #7528 (`#7528 <https://github.com/PyCQA/pylint/issues/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 (`#3299 <https://github.com/PyCQA/pylint/issues/3299>`_)


Other Changes
-------------

- Add method name to the error messages of ``no-method-argument`` and
``no-self-argument``.

Closes #7507 (`#7507 <https://github.com/PyCQA/pylint/issues/7507>`_)


What's new in Pylint 2.15.3?
----------------------------
Release date: 2022-09-19
Expand Down
3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/3044.bugfix

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/3299.bugfix

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/7003.bugfix

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/7507.bugfix

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/7507.other

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/7522.bugfix

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/7524.bugfix

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/7528.bugfix

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/7529.false_positive

This file was deleted.

2 changes: 1 addition & 1 deletion pylint/__pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from __future__ import annotations

__version__ = "2.15.3"
__version__ = "2.15.4"


def get_numversion_from_version(v: str) -> tuple[int, int, int]:
Expand Down
2 changes: 1 addition & 1 deletion tbump.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github_url = "https://github.com/PyCQA/pylint"

[version]
current = "2.15.3"
current = "2.15.4"
regex = '''
^(?P<major>0|[1-9]\d*)
\.
Expand Down

0 comments on commit 20af036

Please sign in to comment.