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

Method visit_Tuple

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

delimit_ifMethod · 0.95
get_precedenceMethod · 0.95
items_viewMethod · 0.95
lenFunction · 0.85

Tested by

no test coverage detected