You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, take this very simple rust function. Calling it from python will result in PathBuf getting converted to builtins.str instead of pathlib.Path. My feature request is that it should instead convert to pathlib.Path.
fnget_parent_directory(path:PathBuf) -> PyResult<PathBuf>{let dir = match path.as_ref().parent(){Some(parent)if parent == Path::new("") => Path::new("."),Some(parent) => parent,None => Path::new("."),};let dir = dunce::canonicalize(dir).map_err(|e| PyOSError::new_err(e.to_string()))?;Ok(dir)}
The text was updated successfully, but these errors were encountered:
For example, take this very simple rust function. Calling it from python will result in
PathBuf
getting converted tobuiltins.str
instead ofpathlib.Path
. My feature request is that it should instead convert topathlib.Path
.The text was updated successfully, but these errors were encountered: