Method
new_unsupported_bin_op_error
(
&self,
a: &PyObject,
b: &PyObject,
op: &str,
)
Source from the content-addressed store, hash-verified
| 206 | } |
| 207 | |
| 208 | pub fn new_unsupported_bin_op_error( |
| 209 | &self, |
| 210 | a: &PyObject, |
| 211 | b: &PyObject, |
| 212 | op: &str, |
| 213 | ) -> PyBaseExceptionRef { |
| 214 | self.new_type_error(format!( |
| 215 | "unsupported operand type(s) for {}: '{}' and '{}'", |
| 216 | op, |
| 217 | a.class().name(), |
| 218 | b.class().name() |
| 219 | )) |
| 220 | } |
| 221 | |
| 222 | pub fn new_unsupported_ternary_op_error( |
| 223 | &self, |
Tested by
no test coverage detected