Skip to content

Commit cf5e106

Browse files
committed
Fix is_callable
1 parent a6f3b9a commit cf5e106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/vm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ impl VirtualMachine {
678678
if let Some(dict) = &obj.dict {
679679
dict.contains_key("__call__", self)
680680
} else {
681-
false
681+
objtype::class_has_attr(&obj.class(), "__call__")
682682
}
683683
},
684684
)

0 commit comments

Comments
 (0)