(&self, vm: &VirtualMachine)
| 527 | |
| 528 | #[pymethod] |
| 529 | fn __getnewargs__(&self, vm: &VirtualMachine) -> PyTupleRef { |
| 530 | let param: Vec<PyObjectRef> = self.elements().map(|x| x.to_pyobject(vm)).collect(); |
| 531 | PyTuple::new_ref(param, &vm.ctx) |
| 532 | } |
| 533 | |
| 534 | // TODO: Uncomment when Python adds __class_getitem__ to bytes |
| 535 | // #[pyclassmethod] |
nothing calls this directly
no test coverage detected