aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/ast.py
diff options
context:
space:
mode:
authorIkko Ashimine <eltociear@gmail.com>2021-05-04 22:18:58 +0900
committerGitHub <noreply@github.com>2021-05-04 06:18:58 -0700
commit9ee8448243e776d2a07a9868e9795bbb2c828f9c (patch)
treebfdde6cc8a2c9b5e72c5070723de812b8f101af4 /Lib/ast.py
parentb451bc8d7e5e5a1df46fbecb6cf50af942cc401e (diff)
downloadcpython-9ee8448243e776d2a07a9868e9795bbb2c828f9c.tar.gz
cpython-9ee8448243e776d2a07a9868e9795bbb2c828f9c.zip
Fix typo in ast.py (GH-25740)
parantheses -> parentheses
Diffstat (limited to 'Lib/ast.py')
-rw-r--r--Lib/ast.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ast.py b/Lib/ast.py
index 0c53e5c5712..66bcee8a252 100644
--- a/Lib/ast.py
+++ b/Lib/ast.py
@@ -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