From: Adrian Freund Date: Wed, 10 Mar 2021 15:58:31 +0000 (+0100) Subject: Fix error in documentation for ast.match_case (GH-24807) X-Git-Tag: v3.10.0a7~172 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a30f0e93495355900fc7add10cc3bddd648bac5;p=thirdparty%2FPython%2Fcpython.git Fix error in documentation for ast.match_case (GH-24807) --- diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index b5e1be826911..4bc9906e8568 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -1252,7 +1252,7 @@ Control flow :class:`match_case` nodes with the different cases. -.. class:: match_case(context_expr, optional_vars) +.. class:: match_case(pattern, guard, body) A single case pattern in a ``match`` statement. ``pattern`` contains the match pattern that will be used to match the subject against. Notice that