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

Method emit_attr_bitmap_clear

mypyc/codegen/emit.py:457–462  ·  view source on GitHub ↗

Mark an attribute as undefined in the attribute bitmap. Unlike emit_attr_bitmap_set, clear unconditionally.

(self, obj: str, rtype: RType, cl: ClassIR, attr: str)

Source from the content-addressed store, hash-verified

455 self._emit_attr_bitmap_update(value, obj, rtype, cl, attr, clear=False)
456
457 def emit_attr_bitmap_clear(self, obj: str, rtype: RType, cl: ClassIR, attr: str) -> None:
458 """Mark an attribute as undefined in the attribute bitmap.
459
460 Unlike emit_attr_bitmap_set, clear unconditionally.
461 """
462 self._emit_attr_bitmap_update("", obj, rtype, cl, attr, clear=True)
463
464 def _emit_attr_bitmap_update(
465 self, value: str, obj: str, rtype: RType, cl: ClassIR, attr: str, clear: bool

Callers 1

generate_setterFunction · 0.80

Calls 1

Tested by

no test coverage detected