diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-11-19 09:34:23 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-11-19 09:37:35 +0100 |
commit | 2f94b7247424eef90f17e966805293fb7f07dd75 (patch) | |
tree | 7fac2349eadec26fbd760b15b5492a49b8fd1756 | |
parent | 07b81d42b11b423c1eb6936f775d4eaaf4f1de22 (diff) | |
parent | b2af2b299c1206e035f44db90b1569b3e3b13511 (diff) | |
download | pylint-git-2f94b7247424eef90f17e966805293fb7f07dd75.tar.gz |
Merge branch 'maintenance/2.15.x' into main following 2.15.6 release
-rw-r--r-- | CONTRIBUTORS.txt | 1 | ||||
-rw-r--r-- | doc/whatsnew/2/2.15/index.rst | 48 | ||||
-rw-r--r-- | doc/whatsnew/fragments/7214.bugfix | 2 | ||||
-rw-r--r-- | tests/functional/s/stop_iteration_inside_generator.py | 4 |
4 files changed, 52 insertions, 3 deletions
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index e7d4f8f3a..05e6c9633 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -364,6 +364,7 @@ contributors: - Stéphane Wirtel <stephane@wirtel.be>: nonlocal-without-binding - Stephen Longofono <8992396+SLongofono@users.noreply.github.com> - Stanislav Levin <slev@altlinux.org> +- Smixi <sismixx@hotmail.fr> - Sorin Sbarnea <ssbarnea@redhat.com> - Slavfox <slavfoxman@gmail.com> - Skip Montanaro <skip@pobox.com> diff --git a/doc/whatsnew/2/2.15/index.rst b/doc/whatsnew/2/2.15/index.rst index a7c635bf7..4ad6eb9bc 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 <https://github.com/PyCQA/pylint/issues/7501>`_) + +- ``unnecessary-list-index-lookup`` will not be wrongly emitted if + ``enumerate`` is called with ``start``. + + Closes #7682 (`#7682 <https://github.com/PyCQA/pylint/issues/7682>`_) + +- Don't warn about ``stop-iteration-return`` when using ``next()`` over + ``itertools.cycle``. + + Closes #7765 (`#7765 <https://github.com/PyCQA/pylint/issues/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 <https://github.com/PyCQA/pylint/issues/7214>`_) + +- Fixes edge case of custom method named ``next`` raised an astroid error. + + Closes #7610 (`#7610 <https://github.com/PyCQA/pylint/issues/7610>`_) + +- Fix crash that happened when parsing files with unexpected encoding starting + with 'utf' like ``utf13``. + + Closes #7661 (`#7661 <https://github.com/PyCQA/pylint/issues/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 <https://github.com/PyCQA/pylint/issues/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 index c91805e4b..016d3dc3e 100644 --- a/doc/whatsnew/fragments/7214.bugfix +++ b/doc/whatsnew/fragments/7214.bugfix @@ -1,3 +1,3 @@ -Message send to reporter are now copied so a reporter cannot modify the message sent to other reporters. +Messages sent to reporter are now copied so a reporter cannot modify the message sent to other reporters. Closes #7214 diff --git a/tests/functional/s/stop_iteration_inside_generator.py b/tests/functional/s/stop_iteration_inside_generator.py index b1646fe16..a143fd946 100644 --- a/tests/functional/s/stop_iteration_inside_generator.py +++ b/tests/functional/s/stop_iteration_inside_generator.py @@ -1,8 +1,8 @@ """ Test that no StopIteration is raised inside a generator """ -# pylint: disable=missing-docstring,invalid-name,import-error, try-except-raise, wrong-import-position,not-callable,raise-missing-from -# pylint: disable=broad-exception-raised +# pylint: disable=missing-docstring,invalid-name,import-error, try-except-raise, wrong-import-position +# pylint: disable=not-callable,raise-missing-from,broad-exception-raised import asyncio class RebornStopIteration(StopIteration): |