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

Method set_precedence

Lib/_ast_unparse.py:154–156  ·  view source on GitHub ↗
(self, precedence, *nodes)

Source from the content-addressed store, hash-verified

152 return self._precedences.get(node, _Precedence.TEST)
153
154 def set_precedence(self, precedence, *nodes):
155 for node in nodes:
156 self._precedences[node] = precedence
157
158 def get_raw_docstring(self, node):
159 """If a docstring node is found in the body of the *node* parameter,

Callers 15

visit_ExprMethod · 0.95
visit_NamedExprMethod · 0.95
visit_AssignMethod · 0.95
visit_AwaitMethod · 0.95
visit_YieldMethod · 0.95
visit_YieldFromMethod · 0.95
_for_helperMethod · 0.95
visit_comprehensionMethod · 0.95
visit_IfExpMethod · 0.95
write_itemMethod · 0.95
visit_UnaryOpMethod · 0.95
visit_BinOpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected