You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -258,6 +258,10 @@ This is meant to be enabled by developers writing visitors using the ``ast`` mod
258
258
259
259
**B910**: Use Counter() instead of defaultdict(int) to avoid excessive memory use as the default dict will record missing keys with the default value when accessed.
260
260
261
+
**B911**: ``itertools.batched()`` without an explicit `strict=` parameter set. ``strict=True`` causes the resulting iterator to raise a ``ValueError`` if the final batch is shorter than ``n``.
262
+
263
+
The ``strict=`` argument was added in Python 3.13, so don't enable this flag for code that should work on <3.13.
264
+
261
265
**B950**: Line too long. This is a pragmatic equivalent of
262
266
``pycodestyle``'s ``E501``: it considers "max-line-length" but only triggers
263
267
when the value has been exceeded by **more than 10%**. ``noqa`` and ``type: ignore`` comments are ignored. You will no
0 commit comments