MCPcopy Create free account
hub / github.com/python/mypy / visit_get_attr

Method visit_get_attr

mypyc/transform/log_trace.py:105–109  ·  view source on GitHub ↗
(self, op: GetAttr)

Source from the content-addressed store, hash-verified

103 return value
104
105 def visit_get_attr(self, op: GetAttr) -> Value:
106 value = self.log(op, "get_attr", f"{op.class_type.name}.{op.attr}")
107 if not op.is_borrowed and op.type.is_refcounted:
108 self.log_inc_ref(op)
109 return value
110
111 def visit_set_attr(self, op: SetAttr) -> Value:
112 name = "set_attr" if not op.is_init else "set_attr_init"

Callers

nothing calls this directly

Calls 2

logMethod · 0.95
log_inc_refMethod · 0.95

Tested by

no test coverage detected