We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1990b6d commit 26bd874Copy full SHA for 26bd874
1 file changed
mypyc/codegen/emitfunc.py
@@ -484,7 +484,7 @@ def visit_set_attr(self, op: SetAttr) -> None:
484
rtype = op.class_type
485
cl = rtype.class_ir
486
attr_rtype, decl_cl = cl.attr_details(op.attr)
487
- if cl.get_method(op.attr):
+ if op.is_propset:
488
# Again, use vtable access for properties...
489
assert not op.is_init and op.error_kind == ERR_FALSE, "%s %d %d %s" % (
490
op.attr,
0 commit comments