Skip to content

Commit 375790e

Browse files
committed
objmodule should have a dict
1 parent fe0284a commit 375790e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

vm/src/obj/objmodule.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ pub struct PyModule {
1111
pub type PyModuleRef = PyRef<PyModule>;
1212

1313
impl PyValue for PyModule {
14+
const HAVE_DICT: bool = true;
15+
1416
fn class(vm: &VirtualMachine) -> PyClassRef {
1517
vm.ctx.module_type()
1618
}

0 commit comments

Comments
 (0)