]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in ast.py (GH-25740)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 May 2021 13:39:16 +0000 (06:39 -0700)
committerGitHub <noreply@github.com>
Tue, 4 May 2021 13:39:16 +0000 (06:39 -0700)
parantheses -> parentheses
(cherry picked from commit 9ee8448243e776d2a07a9868e9795bbb2c828f9c)

Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Lib/ast.py

index 0c53e5c5712f5ed2d8cbd9997ef1cceebe698596..66bcee8a252a0457b5844dda5a0c03e2712ac417 100644 (file)
@@ -1455,9 +1455,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