hotfix ensure that path is a Path
All checks were successful
Mypy / mypy (push) Successful in 1m13s
Pytest / pytest (3.12) (push) Successful in 1m19s
Pytest / pytest (3.13) (push) Successful in 1m14s
Pytest / pytest (3.14) (push) Successful in 1m18s
Ruff / ruff (push) Successful in 1m3s

This commit is contained in:
Justus Kuhlmann 2026-03-24 18:40:46 +01:00
commit 2fd46d452b
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -195,7 +195,7 @@ def cache_dir(path: Path, file: str) -> Path:
The path holding the cached data for the given file.
"""
cache_path_list = file.split("/")[1:]
cache_path = path / CACHE_DIR
cache_path = Path(path) / CACHE_DIR
for directory in cache_path_list:
cache_path /= directory
return cache_path