From b2af2b299c1206e035f44db90b1569b3e3b13511 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sat, 19 Nov 2022 09:22:48 +0100 Subject: [PATCH] Release branch 2.15.6 (#7785) * Bump pylint to 2.15.6, update changelog Co-authored-by: Jacob Walls --- CONTRIBUTORS.txt | 1 + doc/whatsnew/2/2.15/index.rst | 48 ++++++++++++++++++++++ doc/whatsnew/fragments/7214.bugfix | 3 -- doc/whatsnew/fragments/7501.false_positive | 3 -- doc/whatsnew/fragments/7610.bugfix | 3 -- doc/whatsnew/fragments/7661.bugfix | 3 -- doc/whatsnew/fragments/7682.false_positive | 3 -- doc/whatsnew/fragments/7742.bugfix | 3 -- doc/whatsnew/fragments/7765.false_positive | 3 -- pylint/__pkginfo__.py | 2 +- tbump.toml | 2 +- 11 files changed, 51 insertions(+), 23 deletions(-) delete mode 100644 doc/whatsnew/fragments/7214.bugfix delete mode 100644 doc/whatsnew/fragments/7501.false_positive delete mode 100644 doc/whatsnew/fragments/7610.bugfix delete mode 100644 doc/whatsnew/fragments/7661.bugfix delete mode 100644 doc/whatsnew/fragments/7682.false_positive delete mode 100644 doc/whatsnew/fragments/7742.bugfix delete mode 100644 doc/whatsnew/fragments/7765.false_positive diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index e7d4f8f3a1..05e6c96334 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -364,6 +364,7 @@ contributors: - Stéphane Wirtel : nonlocal-without-binding - Stephen Longofono <8992396+SLongofono@users.noreply.github.com> - Stanislav Levin +- Smixi - Sorin Sbarnea - Slavfox - Skip Montanaro diff --git a/doc/whatsnew/2/2.15/index.rst b/doc/whatsnew/2/2.15/index.rst index 48c4479ba9..beb563e4c1 100644 --- a/doc/whatsnew/2/2.15/index.rst +++ b/doc/whatsnew/2/2.15/index.rst @@ -29,6 +29,54 @@ Marc Byrne became a maintainer, welcome to the team ! .. towncrier release notes start +What's new in Pylint 2.15.6? +---------------------------- +Release date: 2022-11-19 + + +False Positives Fixed +--------------------- + +- Fix false positive for ``unhashable-member`` when subclassing ``dict`` and + using the subclass as a dictionary key. + + Closes #7501 (`#7501 `_) + +- ``unnecessary-list-index-lookup`` will not be wrongly emitted if + ``enumerate`` is called with ``start``. + + Closes #7682 (`#7682 `_) + +- Don't warn about ``stop-iteration-return`` when using ``next()`` over + ``itertools.cycle``. + + Closes #7765 (`#7765 `_) + + + +Other Bug Fixes +--------------- + +- Messages sent to reporter are now copied so a reporter cannot modify the + message sent to other reporters. + + Closes #7214 (`#7214 `_) + +- Fixes edge case of custom method named ``next`` raised an astroid error. + + Closes #7610 (`#7610 `_) + +- Fix crash that happened when parsing files with unexpected encoding starting + with 'utf' like ``utf13``. + + Closes #7661 (`#7661 `_) + +- Fix a crash when a child class with an ``__init__`` method inherits from a + parent class with an ``__init__`` class attribute. + + Closes #7742 (`#7742 `_) + + What's new in Pylint 2.15.5? ---------------------------- Release date: 2022-10-21 diff --git a/doc/whatsnew/fragments/7214.bugfix b/doc/whatsnew/fragments/7214.bugfix deleted file mode 100644 index c91805e4bc..0000000000 --- a/doc/whatsnew/fragments/7214.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Message send to reporter are now copied so a reporter cannot modify the message sent to other reporters. - -Closes #7214 diff --git a/doc/whatsnew/fragments/7501.false_positive b/doc/whatsnew/fragments/7501.false_positive deleted file mode 100644 index 0c2d33a075..0000000000 --- a/doc/whatsnew/fragments/7501.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix false positive for ``unhashable-member`` when subclassing ``dict`` and using the subclass as a dictionary key. - -Closes #7501 diff --git a/doc/whatsnew/fragments/7610.bugfix b/doc/whatsnew/fragments/7610.bugfix deleted file mode 100644 index 3eb49fcbb4..0000000000 --- a/doc/whatsnew/fragments/7610.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fixes edge case of custom method named ``next`` raised an astroid error. - -Closes #7610 diff --git a/doc/whatsnew/fragments/7661.bugfix b/doc/whatsnew/fragments/7661.bugfix deleted file mode 100644 index 2e58c861bb..0000000000 --- a/doc/whatsnew/fragments/7661.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix crash that happened when parsing files with unexpected encoding starting with 'utf' like ``utf13``. - -Closes #7661 diff --git a/doc/whatsnew/fragments/7682.false_positive b/doc/whatsnew/fragments/7682.false_positive deleted file mode 100644 index 3f94f447fd..0000000000 --- a/doc/whatsnew/fragments/7682.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -``unnecessary-list-index-lookup`` will not be wrongly emitted if ``enumerate`` is called with ``start``. - -Closes #7682 diff --git a/doc/whatsnew/fragments/7742.bugfix b/doc/whatsnew/fragments/7742.bugfix deleted file mode 100644 index 7e3c930899..0000000000 --- a/doc/whatsnew/fragments/7742.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix a crash when a child class with an ``__init__`` method inherits from a parent class with an ``__init__`` class attribute. - -Closes #7742 diff --git a/doc/whatsnew/fragments/7765.false_positive b/doc/whatsnew/fragments/7765.false_positive deleted file mode 100644 index de7c44c5af..0000000000 --- a/doc/whatsnew/fragments/7765.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Don't warn about ``stop-iteration-return`` when using ``next()`` over ``itertools.cycle``. - -Closes #7765 diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 07f0cd7c03..f8280c24d6 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ from __future__ import annotations -__version__ = "2.15.5" +__version__ = "2.15.6" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/tbump.toml b/tbump.toml index 04f96c9e1e..dda83891de 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/PyCQA/pylint" [version] -current = "2.15.5" +current = "2.15.6" regex = ''' ^(?P0|[1-9]\d*) \.