MCPcopy Index your code
hub / github.com/RustPython/RustPython / visit_Set

Method visit_Set

Lib/_ast_unparse.py:771–778  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

769 self.traverse(node.orelse)
770
771 def visit_Set(self, node):
772 if node.elts:
773 with self.delimit("{", "}"):
774 self.interleave(lambda: self.write(", "), self.traverse, node.elts)
775 else:
776 # `{}` would be interpreted as a dictionary literal, and
777 # `set` might be shadowed. Thus:
778 self.write('{*()}')
779
780 def visit_Dict(self, node):
781 def write_key_value_pair(k, v):

Callers

nothing calls this directly

Calls 3

delimitMethod · 0.95
interleaveMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected