Skip to content

Commit 01508dc

Browse files
authored
Fix typo in exception thrown by ast.unparse (GH-19534)
1 parent e72cbcb commit 01508dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/ast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ def visit_IfExp(self, node):
11491149

11501150
def visit_Set(self, node):
11511151
if not node.elts:
1152-
raise ValueError("Set node should has at least one item")
1152+
raise ValueError("Set node should have at least one item")
11531153
with self.delimit("{", "}"):
11541154
self.interleave(lambda: self.write(", "), self.traverse, node.elts)
11551155

0 commit comments

Comments
 (0)