Fix typo in exception thrown by ast.unparse (GH-19534)
This commit is contained in:
parent
e72cbcb346
commit
01508dcde4
|
@ -1149,7 +1149,7 @@ class _Unparser(NodeVisitor):
|
|||
|
||||
def visit_Set(self, node):
|
||||
if not node.elts:
|
||||
raise ValueError("Set node should has at least one item")
|
||||
raise ValueError("Set node should have at least one item")
|
||||
with self.delimit("{", "}"):
|
||||
self.interleave(lambda: self.write(", "), self.traverse, node.elts)
|
||||
|
||||
|
|
Loading…
Reference in New Issue