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

Method visit_Tuple

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

Source from the content-addressed store, hash-verified

804 )
805
806 def visit_Tuple(self, node):
807 with self.delimit_if(
808 "(",
809 ")",
810 len(node.elts) == 0 or self.get_precedence(node) > _Precedence.TUPLE
811 ):
812 self.items_view(self.traverse, node.elts)
813
814 unop = {"Invert": "~", "Not": "not", "UAdd": "+", "USub": "-"}
815 unop_precedence = {

Callers

nothing calls this directly

Calls 3

delimit_ifMethod · 0.95
get_precedenceMethod · 0.95
items_viewMethod · 0.95

Tested by

no test coverage detected