Skip to content

Commit f5abeaf

Browse files
committed
Add B910 before B950 in README.rst
1 parent 2f4e42f commit f5abeaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ This is meant to be enabled by developers writing visitors using the ``ast`` mod
254254

255255
**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.
256256

257+
**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.
258+
257259
**B950**: Line too long. This is a pragmatic equivalent of
258260
``pycodestyle``'s ``E501``: it considers "max-line-length" but only triggers
259261
when the value has been exceeded by **more than 10%**. ``noqa`` and ``type: ignore`` comments are ignored. You will no
@@ -273,8 +275,6 @@ on the first line and urls or paths that are on their own line::
273275
"https://some-super-long-domain-name.com/with/some/very/long/paths"
274276
)
275277

276-
**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.
277-
278278

279279
How to enable opinionated warnings
280280
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)