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

Method visit_DictComp

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

Source from the content-addressed store, hash-verified

737 self.traverse(gen)
738
739 def visit_DictComp(self, node):
740 with self.delimit("{", "}"):
741 if node.value:
742 self.traverse(node.key)
743 self.write(": ")
744 self.traverse(node.value)
745 else:
746 self.write("**")
747 self.traverse(node.key)
748 for gen in node.generators:
749 self.traverse(gen)
750
751 def visit_comprehension(self, node):
752 if node.is_async:

Callers

nothing calls this directly

Calls 3

delimitMethod · 0.95
traverseMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected