mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-23 16:49:27 +00:00
Update Python bindings with new interface
This commit is contained in:
@ -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()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user