Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
970e14b
Confirm changes before tbump commit (#7666)
cdce8p Oct 23, 2022
288a88d
Fix astroid-error for parsing module encoding (#7663)
clavedeluna Oct 23, 2022
477f858
Pin pytest to resolve issue with pytest-benchmark (#7674)
cdce8p Oct 25, 2022
bf3399e
Update pytest and pytest-benchmark following the 7.2.0 release (#7675)
cdce8p Oct 26, 2022
8e3db1f
Add PyPI deployment environment [ci] (#7676)
cdce8p Oct 26, 2022
4ee928d
Add 'py' to test requirements (#7692)
cdce8p Oct 31, 2022
6d66b18
Fix: reporters receive copy of message (#7620)
Smixi Oct 31, 2022
8b0bb16
Fix astroid error for custom ``next`` method (#7622)
clavedeluna Nov 3, 2022
d56f848
Improve Github action workflows (#7651)
cdce8p Nov 4, 2022
98ceab7
Update Primer venv caching [ci] (#7708)
cdce8p Nov 7, 2022
7b0bc19
Fix a crash when looking up an __init__ method (#7744)
mbyrnepr2 Nov 12, 2022
19c205d
false positive `unnecessary-list-index-lookup` for enumerate (#7685)
clavedeluna Nov 13, 2022
fa618cb
Fix false positive for ``unhashable-member`` when subclassing ``dict`…
mbyrnepr2 Nov 14, 2022
9df5e8a
Suppress `stop-iteration-return` on `itertools.cycle` (#7766)
tushar-deepsource Nov 14, 2022
ff159a6
Bump timeout for docs check [ci] (#7771)
cdce8p Nov 14, 2022
e5c81a9
Replace deprecated `sre_constants.error` with `re.error`
jacobtylerwalls Aug 27, 2022
b2af2b2
Release branch 2.15.6 (#7785)
Pierre-Sassoulas Nov 19, 2022
2f94b72
Merge branch 'maintenance/2.15.x' into main following 2.15.6 release
Pierre-Sassoulas Nov 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
48 changes: 48 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,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
Expand Down
2 changes: 1 addition & 1 deletion doc/whatsnew/fragments/7214.bugfix
Original file line number Diff line number Diff line change
@@ -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
Comment on lines +1 to 3
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fragment should probably be removed as it's included in the changelog for 2.15.6.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's voluntary to include the released notes from patches in minor's whatsnew. It's also convenient as when you merge back the removal need to be done manually again.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't find the discussion about it :( Here we go : #7426 (comment)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only reason we have a diff on this fragment versus the others is because I suggested a grammar fix on this fragment that Pierre committed at release time.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only reason we have a diff on this fragment versus the others is because I suggested a grammar fix on this fragment that Pierre committed at release time.

👍🏻

I think it's voluntary to include the released notes from patches in minor's whatsnew. It's also convenient as when you merge back the removal need to be done manually again.

I was thinking about it the wrong way. We still "need" them for main as they technically aren't released yet, just backported.

4 changes: 2 additions & 2 deletions tests/functional/s/stop_iteration_inside_generator.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down