We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab6eea0 commit afe64e8Copy full SHA for afe64e8
mypyc/irbuild/function.py
@@ -247,7 +247,9 @@ def c() -> None:
247
builder.enter(fn_info, ret_type=sig.ret_type)
248
249
if is_generator:
250
- generator_class_ir = builder.mapper.fdef_to_generator[builder.fn_info.fitem]
+ fitem = builder.fn_info.fitem
251
+ assert isinstance(fitem, FuncDef), fitem
252
+ generator_class_ir = builder.mapper.fdef_to_generator[fitem]
253
builder.fn_info.generator_class = GeneratorClass(generator_class_ir)
254
255
# Functions that contain nested functions need an environment class to store variables that
0 commit comments