diff --git a/vm/src/stdlib/collections.rs b/vm/src/stdlib/collections.rs index f56d8b02a..272e6ec29 100644 --- a/vm/src/stdlib/collections.rs +++ b/vm/src/stdlib/collections.rs @@ -472,6 +472,11 @@ mod _collections { self.borrow_deque().len() } + #[pymethod(magic)] + fn bool(&self) -> bool { + !self.borrow_deque().is_empty() + } + #[pymethod(magic)] fn iadd( zelf: PyRef,