MCPcopy Index your code
hub / github.com/python/cpython / visit_Set

Method visit_Set

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

Source from the content-addressed store, hash-verified

773 self.traverse(node.orelse)
774
775 def visit_Set(self, node):
776 if node.elts:
777 with self.delimit("{", "}"):
778 self.interleave(lambda: self.write(", "), self.traverse, node.elts)
779 else:
780 # `{}` would be interpreted as a dictionary literal, and
781 # `set` might be shadowed. Thus:
782 self.write('{*()}')
783
784 def visit_Dict(self, node):
785 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