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

Method attr

mypyc/codegen/emit.py:236–237  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

234 return REG_PREFIX + self.value_names[reg]
235
236 def attr(self, name: str) -> str:
237 return ATTR_PREFIX + name
238
239 def object_annotation(self, obj: object, line: str) -> str:
240 """Build a C comment with an object's string representation.

Callers 10

generate_object_structFunction · 0.80
generate_offset_tableFunction · 0.80
generate_setup_for_classFunction · 0.80
generate_clear_for_classFunction · 0.80
emit_reuse_deallocFunction · 0.80
generate_getterFunction · 0.80
generate_setterFunction · 0.80
generate_coroutine_setupFunction · 0.80
get_attr_exprMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected