From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Sun, 10 Oct 2021 14:12:51 +0000 (+0200) Subject: Fix class pattern docs to refer to class patterns (GH-28849) X-Git-Tag: v3.11.0a2~256 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0bcc5ade9bff086a0b24d71307fae0a891f4efd2;p=thirdparty%2FPython%2Fcpython.git Fix class pattern docs to refer to class patterns (GH-28849) --- diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 5936cdf5ffc3..3011a168ede4 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -1017,7 +1017,7 @@ A class pattern represents a class and its positional and keyword arguments The same keyword should not be repeated in class patterns. -The following is the logical flow for matching a mapping pattern against a +The following is the logical flow for matching a class pattern against a subject value: #. If ``name_or_attr`` is not an instance of the builtin :class:`type` , raise