Skip to content

Commit b7e5a99

Browse files
authored
PEP 634: Fix markup for sequence pattern note (GH-1940)
1 parent c176458 commit b7e5a99

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pep-0634.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,11 @@ bit set:
377377
- ``range``
378378
- ``tuple``
379379

380-
Note::
380+
.. note::
381381

382-
Although, ``str``, ``bytes`` and ``bytearray`` are usually considered sequences,
383-
they are not included in the above list and not considered to be sequences
384-
when matching a sequence pattern.
382+
Although ``str``, ``bytes``, and ``bytearray`` are usually
383+
considered sequences, they are not included in the above list and do
384+
not match sequence patterns.
385385

386386
A fixed-length sequence pattern fails if the length of the subject
387387
sequence is not equal to the number of subpatterns.
@@ -442,7 +442,7 @@ where being a mapping is defined as its class being one of the following:
442442
- a builtin class that has its ``Py_TPFLAGS_MAPPING`` bit set
443443
- a class that inherits from any of the above.
444444

445-
The standard library classes ``dict`` and ``mappingroxy`` will have their ``Py_TPFLAGS_MAPPING``
445+
The standard library classes ``dict`` and ``mappingproxy`` will have their ``Py_TPFLAGS_MAPPING``
446446
bit set.
447447

448448
A mapping pattern succeeds if every key given in the mapping pattern

0 commit comments

Comments
 (0)