]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in `__match_args__` doc (#99785)
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 26 Nov 2022 00:03:16 +0000 (19:03 -0500)
committerGitHub <noreply@github.com>
Sat, 26 Nov 2022 00:03:16 +0000 (00:03 +0000)
A opy of #98549, whose author (@icecream17) uses a school computer that blocks the CLA site. I did not mention this in commit comment above so CLA bot does not pick up the name and request the CLA again.

Doc/reference/datamodel.rst

index 301f41f3952c961400806ae35c7b6707022f6825..fd682fcff020035910fc610adc9303f9a9e8c16e 100644 (file)
@@ -2823,7 +2823,7 @@ Customizing positional arguments in class pattern matching
 
 When using a class name in a pattern, positional arguments in the pattern are not
 allowed by default, i.e. ``case MyClass(x, y)`` is typically invalid without special
-support in ``MyClass``. To be able to use that kind of patterns, the class needs to
+support in ``MyClass``. To be able to use that kind of pattern, the class needs to
 define a *__match_args__* attribute.
 
 .. data:: object.__match_args__