Skip to main content

gen_pyo3_error_registration

Function gen_pyo3_error_registration 

Source
pub fn gen_pyo3_error_registration(error: &ErrorDef) -> Vec<String>
Expand description

Generate m.add(...) registration calls for each exception type. Uses Error-suffixed names for variant exceptions (N818 compliance). Prefixes names that would shadow Python builtins (A004 compliance).