From bd6beb5316c82e3c1c9fe5a88e0a07fbd3c8d7bd Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 23 Mar 2021 11:14:13 -0700 Subject: [PATCH] PEP 636: fix typo (#1891) This was brought up by codeofdusk@gmail.com on the python-dev list. --- pep-0636.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0636.rst b/pep-0636.rst index 880074232..1c3fa1f7b 100644 --- a/pep-0636.rst +++ b/pep-0636.rst @@ -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.