(&self, vm: &VirtualMachine)
| 134 | } |
| 135 | |
| 136 | fn to_object(&self, vm: &VirtualMachine) -> PyResult { |
| 137 | Ok(match &self.mapping { |
| 138 | MappingProxyInner::Mapping(d) => d.as_ref().to_owned(), |
| 139 | MappingProxyInner::Class(c) => { |
| 140 | PyDict::from_attributes(c.attributes.read().clone(), vm)?.to_pyobject(vm) |
| 141 | } |
| 142 | }) |
| 143 | } |
| 144 | |
| 145 | #[pymethod] |
| 146 | pub fn items(&self, vm: &VirtualMachine) -> PyResult { |
no test coverage detected