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

Method visit_set_attr

mypyc/transform/log_trace.py:111–113  ·  view source on GitHub ↗
(self, op: SetAttr)

Source from the content-addressed store, hash-verified

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"
113 return self.log(op, name, f"{op.class_type.name}.{op.attr}")
114
115 def visit_box(self, op: Box) -> Value:
116 if op.src.type is none_rprimitive:

Callers

nothing calls this directly

Calls 1

logMethod · 0.95

Tested by

no test coverage detected