Skip to content

Commit 9e6591e

Browse files
authored
Update crates/vm/src/builtins/bool.rs
1 parent 628f59e commit 9e6591e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/vm/src/builtins/bool.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ impl PyObjectRef {
4242
let rs_bool = if let Some(nb_bool) = self.class().slots.as_number.boolean.load() {
4343
nb_bool(self.as_object().to_number(), vm)?
4444
} else {
45+
// TODO: Fully implement AsNumber and remove this block
4546
match vm.get_method(self.clone(), identifier!(vm, __bool__)) {
4647
Some(method_or_err) => {
4748
// If descriptor returns Error, propagate it further

0 commit comments

Comments
 (0)