Skip to content

Commit f514765

Browse files
Update class_ir.py
1 parent a554654 commit f514765

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

mypyc/ir/class_ir.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,13 @@ def __repr__(self) -> str:
237237
def fullname(self) -> str:
238238
return f"{self.module_name}.{self.name}"
239239

240+
@property
241+
def allow_interpreted_subclasses(self) -> bool:
242+
243+
@allow_interpreted_subclasses.setter
244+
def _(self, value: bool) -> None:
245+
self._allow_interpreted_subclasses = value
246+
240247
def real_base(self) -> ClassIR | None:
241248
"""Return the actual concrete base class, if there is one."""
242249
if len(self.mro) > 1 and not self.mro[1].is_trait:
@@ -380,7 +387,7 @@ def serialize(self) -> JsonDict:
380387
"is_final_class": self.is_final_class,
381388
"inherits_python": self.inherits_python,
382389
"has_dict": self.has_dict,
383-
"allow_interpreted_subclasses": self.allow_interpreted_subclasses,
390+
"allow_interpreted_subclasses": self._allow_interpreted_subclasses,
384391
"needs_getseters": self.needs_getseters,
385392
"_serializable": self._serializable,
386393
"builtin_base": self.builtin_base,

0 commit comments

Comments
 (0)