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