mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-08 15:28:26 +01:00
Unlike original implementation [1] that uses `str()` we actually need to use `fspath`, because we've overriden `__str__` method to return relative paths, which will break original `as_posix`. [1] https://github.com/python/cpython/blob/v3.7.0/Lib/pathlib.py#L692 Fixes #2483 Signed-off-by: Ruslan Kuprieiev <[email protected]>