(&self, vm: &VirtualMachine)
| 551 | |
| 552 | #[pymethod] |
| 553 | fn __reduce__(&self, vm: &VirtualMachine) -> (PyTypeRef, PyTupleRef, Option<PyDictRef>) { |
| 554 | let bytes = PyBytes::from(self.to_vec()).to_pyobject(vm); |
| 555 | ( |
| 556 | self.class().to_owned(), |
| 557 | PyTuple::new_ref(vec![bytes], &vm.ctx), |
| 558 | self.as_object().dict(), |
| 559 | ) |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | #[pyclass] |
no test coverage detected