Skip to content

Commit

Permalink
PEP 635: fix duplicate labels (#2742)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Jul 28, 2022
1 parent b772305 commit 3d63099
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions pep-0635.rst
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ and not for individual patterns.
return a + [p] + b


.. _patterns:
.. _635-patterns:

Patterns
--------
Expand Down Expand Up @@ -586,7 +586,7 @@ without adding a significant benefit. It can always be added later.
return expr


.. _literal_pattern:
.. _635-literal_pattern:

Literal Patterns
~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -675,7 +675,7 @@ being.
return expr


.. _capture_pattern:
.. _635-capture_pattern:

Capture Patterns
~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -734,7 +734,7 @@ especially given that we expect capture patterns to be very common.
return sum(a) / len(a)


.. _wildcard_pattern:
.. _635-wildcard_pattern:

Wildcard Pattern
~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -901,7 +901,7 @@ Allowing users to explicitly specify the grouping is particularly helpful
in case of OR patterns.


.. _sequence_pattern:
.. _635-sequence_pattern:

Sequence Patterns
~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -961,7 +961,7 @@ enumerate all other types that may be used to represent bytes
(e.g. some, but not all, instances of ``memoryview`` and ``array.array``).


.. _mapping_pattern:
.. _635-mapping_pattern:

Mapping Patterns
~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -1008,7 +1008,7 @@ unexpected side effect.
change_red_to_blue(child)


.. _class_pattern:
.. _635-class_pattern:

Class Patterns
~~~~~~~~~~~~~~
Expand Down Expand Up @@ -1278,13 +1278,3 @@ Copyright

This document is placed in the public domain or under the
CC0-1.0-Universal license, whichever is more permissive.


..
Local Variables:
mode: indented-text
indent-tabs-mode: nil
sentence-end-double-space: t
fill-column: 70
coding: utf-8
End:

0 comments on commit 3d63099

Please sign in to comment.