pub fn gen_pyo3_error_converter(error: &ErrorDef, core_import: &str) -> StringExpand description
Generate a to_py_err converter function that maps each Rust error variant to a Python exception.
Uses Error-suffixed names for variant exceptions (N818 compliance).