Skip to content

Commit 34eb9c1

Browse files
committed
Restore finalize method
1 parent 7b17521 commit 34eb9c1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mypyc/irbuild/classdef.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
get_func_def,
7070
is_constant,
7171
is_dataclass_decorator,
72-
is_final_class,
7372
)
7473
from mypyc.primitives.dict_ops import dict_new_op, dict_set_item_op
7574
from mypyc.primitives.generic_ops import (
@@ -304,7 +303,6 @@ def add_attr(self, lvalue: NameExpr, stmt: AssignmentStmt) -> None:
304303
self.builder.init_final_static(lvalue, value, self.cdef.name)
305304

306305
def finalize(self, ir: ClassIR) -> None:
307-
ir.is_final_class = is_final_class(self.cdef)
308306
attrs_with_defaults, default_assignments = find_attr_initializers(
309307
self.builder, self.cdef, self.skip_attr_default
310308
)

0 commit comments

Comments
 (0)