Skip to content

Commit 26096e4

Browse files
committed
Update CHANGES + move to version 24.2.6 to release
1 parent 82357df commit 26096e4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.rst

+9-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ second usage. Save the result to a list if the result is needed multiple times.
199199

200200
**B037**: Found ``return <value>``, ``yield``, ``yield <value>``, or ``yield from <value>`` in class ``__init__()`` method. No values should be returned or yielded, only bare ``return``\s are ok.
201201

202-
**B038**: Found a mutation of a mutable loop iterable inside the loop body. Changes to the iterable of a loop such as calls to `list.remove()` or via `del` can cause unintended bugs.
202+
**B038**: **Moved to B909** - Found a mutation of a mutable loop iterable inside the loop body. Changes to the iterable of a loop such as calls to `list.remove()` or via `del` can cause unintended bugs.
203203

204204
Opinionated warnings
205205
~~~~~~~~~~~~~~~~~~~~
@@ -248,6 +248,8 @@ This is meant to be enabled by developers writing visitors using the ``ast`` mod
248248

249249
**B908**: Contexts with exceptions assertions like ``with self.assertRaises`` or ``with pytest.raises`` should not have multiple top-level statements. Each statement should be in its own context. That way, the test ensures that the exception is raised only in the exact statement where you expect it.
250250

251+
**B909**: **Was B038** - Found a mutation of a mutable loop iterable inside the loop body. Changes to the iterable of a loop such as calls to `list.remove()` or via `del` can cause unintended bugs.
252+
251253
**B950**: Line too long. This is a pragmatic equivalent of
252254
``pycodestyle``'s ``E501``: it considers "max-line-length" but only triggers
253255
when the value has been exceeded by **more than 10%**. ``noqa`` and ``type: ignore`` comments are ignored. You will no
@@ -349,6 +351,12 @@ MIT
349351
Change Log
350352
----------
351353

354+
24.2.6
355+
~~~~~~
356+
357+
* B902: Remove decorators named validator and root_validator from B902 checks (#459)
358+
* B038: Change B038 to B909 and make it optional (#456)
359+
352360
24.1.17
353361
~~~~~~~
354362

bugbear.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import attr
1818
import pycodestyle
1919

20-
__version__ = "24.1.17"
20+
__version__ = "24.2.6"
2121

2222
LOG = logging.getLogger("flake8.bugbear")
2323
CONTEXTFUL_NODES = (

0 commit comments

Comments
 (0)