Skip to content

Commit a54a4a3

Browse files
Zac-HDcooperlees
andauthored
Update README.rst
Co-authored-by: Cooper Lees <[email protected]>
1 parent e4de78e commit a54a4a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@ or ``raise ... from None`` to distinguish them from errors in exception handling
200200
See `the exception chaining tutorial <https://docs.python.org/3/tutorial/errors.html#exception-chaining>`_
201201
for details.
202202

203-
**B905**: `zip()` without an explicit `strict=` parameter. Added with python3.10, so don't enable this flag for code that should work on previous versions. https://peps.python.org/pep-0618/
203+
**B905**: ``zip()`` without an explicit `strict=` parameter set. ``strict=True`` causes the resulting iterator
204+
to raise a ``ValueError`` if the arguments are exhausted at differing lengths. The ``strict=`` argument
205+
was added in Python 3.10, so don't enable this flag for code that should work on <3.10.
206+
For more information: https://peps.python.org/pep-0618/
204207

205208
**B950**: Line too long. This is a pragmatic equivalent of
206209
``pycodestyle``'s ``E501``: it considers "max-line-length" but only triggers

0 commit comments

Comments
 (0)