diff --git a/pep-0636.rst b/pep-0636.rst index dc9e9ce18..5e8fc27d0 100644 --- a/pep-0636.rst +++ b/pep-0636.rst @@ -316,10 +316,10 @@ different kinds of objects, and also apply patterns to its attributes:: case other_event: raise ValueError(f"Unrecognized event: {other_event}") -A pattern like ``Click(position=(x, y))`` only matches if the actual event is a subclass of -the ``Click`` class. It will also requires 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. +A pattern like ``Click(position=(x, y))`` only matches if the the type of the event is +a subclass of the ``Click`` class. It will also requires 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. A pattern like ``KeyPress()``, with no arguments will match any object which is an instance of the ``KeyPress`` class. Only the attributes you specify in the pattern are