]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in ast.py (GH-25740)
authorIkko Ashimine <eltociear@gmail.com>
Tue, 4 May 2021 13:18:58 +0000 (22:18 +0900)
committerGitHub <noreply@github.com>
Tue, 4 May 2021 13:18:58 +0000 (06:18 -0700)
parantheses -> parentheses

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