pub fn extraction_failure(
kind: &str,
ob: &Bound<'_, PyAny>,
cause: impl Display,
) -> PyErrExpand description
Build a PyErr for a failed AST-node conversion, carrying the node’s source position so the error can be reported against the user’s Python code instead of panicking with an internal dump.