Skip to content

Commit 73ddcbe

Browse files
committed
Fix mypy issue
1 parent c482cec commit 73ddcbe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mypyc/ir/rtypes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,10 @@ def accept(self, visitor: RTypeVisitor[T]) -> T:
885885
def is_refcounted(self) -> bool:
886886
return any(t.is_refcounted for t in self.class_ir.all_attributes().values())
887887

888+
@is_refcounted.setter
889+
def is_refcounted(self, value: bool) -> None:
890+
raise NotImplementedError("is_refcounted is read-only for RInstanceValue")
891+
888892
def __repr__(self) -> str:
889893
return "<RInstanceValue %s>" % self.name
890894

0 commit comments

Comments
 (0)