Skip to content

Commit ac3cfca

Browse files
committed
Fix callable (again)
1 parent cf5e106 commit ac3cfca

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

vm/src/vm.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -674,13 +674,7 @@ impl VirtualMachine {
674674
PyFunction => true,
675675
PyMethod => true,
676676
PyBuiltinFunction => true,
677-
obj => {
678-
if let Some(dict) = &obj.dict {
679-
dict.contains_key("__call__", self)
680-
} else {
681-
objtype::class_has_attr(&obj.class(), "__call__")
682-
}
683-
},
677+
obj => objtype::class_has_attr(&obj.class(), "__call__"),
684678
)
685679
}
686680

0 commit comments

Comments
 (0)