Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38ff638 commit 1e5e723Copy full SHA for 1e5e723
crates/vm/src/frame.rs
@@ -1051,7 +1051,9 @@ impl ExecutingFrame<'_> {
1051
let iterable = self.pop_value();
1052
let iter = if iterable.class().is(vm.ctx.types.coroutine_type) {
1053
// Coroutine requires CO_COROUTINE or CO_ITERABLE_COROUTINE flag
1054
- if !self.code.flags.intersects(bytecode::CodeFlags::COROUTINE | bytecode::CodeFlags::ITERABLE_COROUTINE) {
+ if !self.code.flags.intersects(
1055
+ bytecode::CodeFlags::COROUTINE | bytecode::CodeFlags::ITERABLE_COROUTINE,
1056
+ ) {
1057
return Err(vm.new_type_error(
1058
"cannot 'yield from' a coroutine object in a non-coroutine generator"
1059
.to_owned(),
0 commit comments