(zelf: PyRef<Self>, args: Self::Args, vm: &VirtualMachine)
| 422 | type Args = ModuleInitArgs; |
| 423 | |
| 424 | fn init(zelf: PyRef<Self>, args: Self::Args, vm: &VirtualMachine) -> PyResult<()> { |
| 425 | debug_assert!( |
| 426 | zelf.class() |
| 427 | .slots |
| 428 | .flags |
| 429 | .has_feature(crate::types::PyTypeFlags::HAS_DICT) |
| 430 | ); |
| 431 | zelf.init_dict(vm.ctx.intern_str(args.name.as_wtf8()), args.doc, vm); |
| 432 | Ok(()) |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | impl GetAttr for PyModule { |
nothing calls this directly
no test coverage detected