'Compute the actual generator type (the generator function\'s return
type is simply "pyobject").'

def get_generator_type(self):

    return types.Generator(gen_func=self.func_ir.func_id.func, yield_type=types.pyobject, arg_types=((types.pyobject,) * self.func_ir.arg_count), state_types=((types.pyobject,) * len(self.geninfo.state_vars)), has_finalizer=True)
