pub type Result<T> = std::result::Result<T, Error>;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error(transparent)]
Python(#[from] pyo3::PyErr),
}
impl From<Error> for pyo3::PyErr {
fn from(e: Error) -> Self {
match e {
Error::Python(e) => e,
}
}
}