PEP 636: fix typo (#1891)

This was brought up by codeofdusk@gmail.com on the python-dev list.
This commit is contained in:
Jelle Zijlstra 2021-03-23 11:14:13 -07:00 committed by GitHub
parent d548fdfb61
commit bd6beb5316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ different kinds of objects, and also apply patterns to its attributes::
raise ValueError(f"Unrecognized event: {other_event}") raise ValueError(f"Unrecognized event: {other_event}")
A pattern like ``Click(position=(x, y))`` only matches if the type of the event is 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 attribute that matches the ``(x, y)`` pattern. If there's a match, the locals ``x`` and
``y`` will get the expected values. ``y`` will get the expected values.