[Python-checkins] Fix typo in `__match_args__` doc (#99785)

AlexWaygood webhook-mailer at python.org
Fri Nov 25 19:03:23 EST 2022


https://github.com/python/cpython/commit/a86d8545221b16e714ffe3bda5afafc1d4748d13
commit: a86d8545221b16e714ffe3bda5afafc1d4748d13
branch: main
author: Terry Jan Reedy <tjreedy at udel.edu>
committer: AlexWaygood <Alex.Waygood at Gmail.com>
date: 2022年11月26日T00:03:16Z
summary:
Fix typo in `__match_args__` doc (#99785)
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.
files:
M Doc/reference/datamodel.rst
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 301f41f3952c..fd682fcff020 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -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__


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /