PEP 636: fix typo (#1891)
This was brought up by codeofdusk@gmail.com on the python-dev list.
This commit is contained in:
parent
d548fdfb61
commit
bd6beb5316
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue