(self, vm: &VirtualMachine)
| 708 | |
| 709 | #[pymethod] |
| 710 | fn __reduce__(self, vm: &VirtualMachine) -> PyTupleRef { |
| 711 | if let Some(dict) = self.as_object().dict().filter(|x| !x.is_empty()) { |
| 712 | vm.new_tuple((self.class().to_owned(), self.args(), dict)) |
| 713 | } else { |
| 714 | vm.new_tuple((self.class().to_owned(), self.args())) |
| 715 | } |
| 716 | } |
| 717 | |
| 718 | #[pymethod] |
| 719 | fn __setstate__(self, state: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyObjectRef> { |
nothing calls this directly
no test coverage detected