mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
objmodule should have a dict
This commit is contained in:
@@ -11,6 +11,8 @@ pub struct PyModule {
|
||||
pub type PyModuleRef = PyRef<PyModule>;
|
||||
|
||||
impl PyValue for PyModule {
|
||||
const HAVE_DICT: bool = true;
|
||||
|
||||
fn class(vm: &VirtualMachine) -> PyClassRef {
|
||||
vm.ctx.module_type()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user