Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Generator class is final (fix after rebase)
  • Loading branch information
JukkaL committed Jul 4, 2025
commit e3d3578976b9291b2d94d0fa4747a29a1b1835c5
2 changes: 1 addition & 1 deletion mypyc/irbuild/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def prepare_func_def(
) -> FuncDecl:
if fdef.is_coroutine or fdef.is_generator:
name = "_".join(x for x in [fdef.name, class_name] if x) + "_gen"
cir = ClassIR(name, module_name, is_generated=True)
cir = ClassIR(name, module_name, is_generated=True, is_final_class=True)
cir.reuse_freed_instance = True
mapper.fdef_to_generator[fdef] = cir

Expand Down