[Python-checkins] Fix error in documentation for ast.match_case (GH-24807)

brandtbucher webhook-mailer at python.org
Wed Mar 10 10:58:40 EST 2021


https://github.com/python/cpython/commit/0a30f0e93495355900fc7add10cc3bddd648bac5
commit: 0a30f0e93495355900fc7add10cc3bddd648bac5
branch: master
author: Adrian Freund <git at freundtech.com>
committer: brandtbucher <brandtbucher at gmail.com>
date: 2021-03-10T07:58:31-08:00
summary:

Fix error in documentation for ast.match_case (GH-24807)

files:
M Doc/library/ast.rst

diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst
index b5e1be8269115..4bc9906e8568a 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



More information about the Python-checkins mailing list