[Python-checkins] Fix typo in ast.py (GH-25740)

orsenthil webhook-mailer at python.org
Tue May 4 09:19:03 EDT 2021


https://github.com/python/cpython/commit/9ee8448243e776d2a07a9868e9795bbb2c828f9c
commit: 9ee8448243e776d2a07a9868e9795bbb2c828f9c
branch: main
author: Ikko Ashimine <eltociear at gmail.com>
committer: orsenthil <skumaran at gatech.edu>
date: 2021-05-04T06:18:58-07:00
summary:

Fix typo in ast.py (GH-25740)

parantheses -> parentheses

files:
M Lib/ast.py

diff --git a/Lib/ast.py b/Lib/ast.py
index 0c53e5c5712f5..66bcee8a252a0 100644
--- a/Lib/ast.py
+++ b/Lib/ast.py
@@ -1455,9 +1455,9 @@ def visit_Call(self, node):
 
     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



More information about the Python-checkins mailing list