MCPcopy Index your code
hub / github.com/RustPython/RustPython / new_unsupported_unary_error

Method new_unsupported_unary_error

crates/vm/src/vm/vm_new.rs:200–206  ·  view source on GitHub ↗
(&self, a: &PyObject, op: &str)

Source from the content-addressed store, hash-verified

198 }
199
200 pub fn new_unsupported_unary_error(&self, a: &PyObject, op: &str) -> PyBaseExceptionRef {
201 self.new_type_error(format!(
202 "bad operand type for {}: '{}'",
203 op,
204 a.class().name()
205 ))
206 }
207
208 pub fn new_unsupported_bin_op_error(
209 &self,

Callers 4

_absMethod · 0.80
_posMethod · 0.80
_negMethod · 0.80
_invertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected