Skip to content

Commit

Permalink
Restore finalize method
Browse files Browse the repository at this point in the history
  • Loading branch information
jairov4 committed Oct 14, 2024
1 parent 7b17521 commit 34eb9c1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mypyc/irbuild/classdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
get_func_def,
is_constant,
is_dataclass_decorator,
is_final_class,
)
from mypyc.primitives.dict_ops import dict_new_op, dict_set_item_op
from mypyc.primitives.generic_ops import (
Expand Down Expand Up @@ -304,7 +303,6 @@ def add_attr(self, lvalue: NameExpr, stmt: AssignmentStmt) -> None:
self.builder.init_final_static(lvalue, value, self.cdef.name)

def finalize(self, ir: ClassIR) -> None:
ir.is_final_class = is_final_class(self.cdef)
attrs_with_defaults, default_assignments = find_attr_initializers(
self.builder, self.cdef, self.skip_attr_default
)
Expand Down

0 comments on commit 34eb9c1

Please sign in to comment.