Update Python bindings with new interface

This commit is contained in:
Anthony MOI
2020-07-29 16:45:55 -04:00
committed by Anthony MOI
parent 261a0c6dd8
commit 7833965dc4
8 changed files with 101 additions and 243 deletions

View File

@ -27,3 +27,8 @@ impl<T> std::convert::Into<PyResult<T>> for ToPyResult<T> {
.map_err(|e| exceptions::Exception::py_err(format!("{}", e)))
}
}
impl<T> ToPyResult<T> {
pub fn into_py(self) -> PyResult<T> {
self.into()
}
}