MCPcopy Index your code
hub / github.com/python/mypy / visit_init_static

Method visit_init_static

mypyc/ir/pprint.py:156–160  ·  view source on GitHub ↗
(self, op: InitStatic)

Source from the content-addressed store, hash-verified

154 return self.format("%r = %s :: %s%s", op, name, op.namespace, ann)
155
156 def visit_init_static(self, op: InitStatic) -> str:
157 name = op.identifier
158 if op.module_name is not None:
159 name = f"{op.module_name}.{name}"
160 return self.format("%s = %r :: %s", name, op.value, op.namespace)
161
162 def visit_tuple_get(self, op: TupleGet) -> str:
163 return self.format("%r = %s%r[%d]", op, self.borrow_prefix(op), op.src, op.index)

Callers

nothing calls this directly

Calls 1

formatMethod · 0.95

Tested by

no test coverage detected