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
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,8 +220,11 @@ See `the exception chaining tutorial <https://docs.python.org/3/tutorial/errors.
220
220
for details.
221
221
222
222
**B905**: ``zip()`` without an explicit `strict=` parameter set. ``strict=True`` causes the resulting iterator
223
-
to raise a ``ValueError`` if the arguments are exhausted at differing lengths. The ``strict=`` argument
224
-
was added in Python 3.10, so don't enable this flag for code that should work on <3.10.
223
+
to raise a ``ValueError`` if the arguments are exhausted at differing lengths.
224
+
225
+
Exclusions are `itertools.count <https://docs.python.org/3/library/itertools.html#itertools.count>`_, `itertools.cycle <https://docs.python.org/3/library/itertools.html#itertools.cycle>`_ and `itertools.repeat <https://docs.python.org/3/library/itertools.html#itertools.repeat>`_ (with times=None) since they are infinite iterators.
226
+
227
+
The ``strict=`` argument was added in Python 3.10, so don't enable this flag for code that should work on <3.10.
225
228
For more information: https://peps.python.org/pep-0618/
226
229
227
230
**B906**: ``visit_`` function with no further call to a ``visit`` function. This is often an error, and will stop the visitor from recursing into the subnodes of a visited node. Consider adding a call ``self.generic_visit(node)`` at the end of the function.
0 commit comments