From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 4 Sep 2024 09:19:29 +0000 (+0200) Subject: [3.12] gh-123580: Fix `signed_number` token in documentation (GH-123582) (GH-123624) X-Git-Tag: v3.12.6~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6ee0b3e7b4e4bfa7f2855214ff12b730b59b0af;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-123580: Fix `signed_number` token in documentation (GH-123582) (GH-123624) gh-123580: Fix `signed_number` token in documentation (GH-123582) (cherry picked from commit 9e079c220b7f64d78a1aa36a23b513d7f377a694) Co-authored-by: CBerJun <121291537+CBerJun@users.noreply.github.com> Co-authored-by: Sergey B Kirpichev --- diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 6d2e948b7609..b757cf6bee3a 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -841,7 +841,7 @@ A literal pattern corresponds to most : | "None" : | "True" : | "False" - : | `signed_number`: NUMBER | "-" NUMBER + signed_number: ["-"] NUMBER The rule ``strings`` and the token ``NUMBER`` are defined in the :doc:`standard Python grammar <./grammar>`. Triple-quoted strings are