Fix typo in ast.py (GH-25740)

parantheses -> parentheses
(cherry picked from commit 9ee8448243)

Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
This commit is contained in:
Miss Islington (bot) 2021-05-04 06:39:16 -07:00 committed by GitHub
parent 377f3d43aa
commit 62a983d866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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