(&self, vm: &VirtualMachine)
| 102 | |
| 103 | #[inline] |
| 104 | pub fn try_float(&self, vm: &VirtualMachine) -> PyResult<PyRef<PyFloat>> { |
| 105 | self.try_float_opt(vm).ok_or_else(|| { |
| 106 | vm.new_type_error(format!("must be real number, not {}", self.class())) |
| 107 | })? |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | #[derive(Default)] |
no test coverage detected