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
Fix join_path type inconsistency: return Path when Path inputs are provided (NVIDIA#33)
## Summary
`LocalBackend.join_path` accepted `Union[str, Path]` inputs but always
returned `str` (via `os.path.join`), even when `Path` objects were
passed. This violated the type contract and could cause `AttributeError`
downstream.
## Changes
- **local_backend.py**: Now checks if any input is a `Path` and returns
`Path(result)` accordingly. Removed the stale TODO that acknowledged
this issue.
- **base_backend.py, easy_io.py, file_client.py**: Updated return type
from `str` to `Union[str, Path]`.
- **boto3_backend.py, msc_backend.py, http_backend.py**: Updated return
type signature for consistency with the abstract base class.
## Related Issue
ClosesNVIDIA#32
Co-authored-by: Maosheng Liao <maoshengl@nvidia.com>
0 commit comments