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

Method visit_load_static

mypyc/ir/pprint.py:149–154  ·  view source on GitHub ↗
(self, op: LoadStatic)

Source from the content-addressed store, hash-verified

147 return self.format("%r.%s = %r; %r = is_error", op.obj, op.attr, op.src, op)
148
149 def visit_load_static(self, op: LoadStatic) -> str:
150 ann = f" ({repr(op.ann)})" if op.ann else ""
151 name = op.identifier
152 if op.module_name is not None:
153 name = f"{op.module_name}.{name}"
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

Callers

nothing calls this directly

Calls 2

formatMethod · 0.95
reprFunction · 0.85

Tested by

no test coverage detected