Skip to content

Commit

Permalink
PEP 636: fix typo (#1891)
Browse files Browse the repository at this point in the history
This was brought up by codeofdusk@gmail.com on the python-dev list.
  • Loading branch information
JelleZijlstra authored Mar 23, 2021
1 parent d548fdf commit bd6beb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pep-0636.rst
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ different kinds of objects, and also apply patterns to its attributes::
raise ValueError(f"Unrecognized event: {other_event}")

A pattern like ``Click(position=(x, y))`` only matches if the type of the event is
a subclass of the ``Click`` class. It will also requires that the event has a ``position``
a subclass of the ``Click`` class. It will also require that the event has a ``position``
attribute that matches the ``(x, y)`` pattern. If there's a match, the locals ``x`` and
``y`` will get the expected values.

Expand Down

0 comments on commit bd6beb5

Please sign in to comment.