mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Fix typo in ast.py (GH-25740) (GH-25894)
parantheses -> parentheses
(cherry picked from commit 9ee8448243
)
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
This commit is contained in:
parent
91cb1e20e6
commit
c3bf0bd472
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue