(self, vm: &VirtualMachine)
| 164 | } |
| 165 | |
| 166 | pub fn keys(self, vm: &VirtualMachine) -> PyResult { |
| 167 | if let Some(dict) = self.obj.downcast_ref_if_exact::<PyDict>(vm) { |
| 168 | PyDictKeys::new(dict.to_owned()).to_pyresult(vm) |
| 169 | } else { |
| 170 | self.method_output_as_list(identifier!(vm, keys), vm) |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | pub fn values(self, vm: &VirtualMachine) -> PyResult { |
| 175 | if let Some(dict) = self.obj.downcast_ref_if_exact::<PyDict>(vm) { |
no test coverage detected