MCPcopy Create free account
hub / github.com/PyO3/pyo3 / conversion_error

Function conversion_error

tests/test_pyfunction.rs:301–309  ·  view source on GitHub ↗
(
    str_arg: &str,
    int_arg: i64,
    tuple_arg: (String, f64),
    option_arg: Option<i64>,
    struct_arg: Option<ValueClass>,
)

Source from the content-addressed store, hash-verified

299#[pyfunction]
300#[pyo3(signature=(str_arg, int_arg, tuple_arg, option_arg = None, struct_arg = None))]
301fn conversion_error(
302 str_arg: &str,
303 int_arg: i64,
304 tuple_arg: (String, f64),
305 option_arg: Option<i64>,
306 struct_arg: Option<ValueClass>,
307) {
308 println!("{str_arg:?} {int_arg:?} {tuple_arg:?} {option_arg:?} {struct_arg:?}");
309}
310
311#[test]
312fn test_conversion_error() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected