Skip to content

Commit cfc74cf

Browse files
committed
Use dict.contains_key
1 parent 28bda86 commit cfc74cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/frame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ impl ExecutingFrame<'_> {
458458
bytecode::Instruction::YieldFrom => self.execute_yield_from(vm),
459459
bytecode::Instruction::SetupAnnotation => {
460460
let locals = self.scope.get_locals();
461-
if !locals.contains_key("__annotations__") {
461+
if !locals.contains_key("__annotations__", vm) {
462462
locals.set_item("__annotations__", vm.ctx.new_dict().into_object(), vm)?;
463463
}
464464
Ok(None)

0 commit comments

Comments
 (0)