From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 4 May 2021 13:39:08 +0000 (-0700) Subject: Fix typo in ast.py (GH-25740) (GH-25894) X-Git-Tag: v3.9.6~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3bf0bd4720f9e0cfed84867a3150c2503a27a33;p=thirdparty%2FPython%2Fcpython.git Fix typo in ast.py (GH-25740) (GH-25894) parantheses -> parentheses (cherry picked from commit 9ee8448243e776d2a07a9868e9795bbb2c828f9c) Co-authored-by: Ikko Ashimine Co-authored-by: Ikko Ashimine --- diff --git a/Lib/ast.py b/Lib/ast.py index 5d32621841e4..396eea18303c 100644 --- a/Lib/ast.py +++ b/Lib/ast.py @@ -1448,9 +1448,9 @@ class _Unparser(NodeVisitor): def visit_Subscript(self, node): def is_simple_tuple(slice_value): - # when unparsing a non-empty tuple, the parantheses can be safely + # when unparsing a non-empty tuple, the parentheses can be safely # omitted if there aren't any elements that explicitly requires - # parantheses (such as starred expressions). + # parentheses (such as starred expressions). return ( isinstance(slice_value, Tuple) and slice_value.elts