Skip to content

Commit

Permalink
Update project.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-migas committed May 16, 2024
1 parent b485420 commit 47ec223
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/koyo/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def cache_dir(self) -> Path:
"""Return path to cache directory."""
if self._cache_dir is None:
self._cache_dir = self.project_dir / "Cache"
self._cache_dir.mkdir(parents=True, exist_ok=True)
return self._cache_dir
self._cache_dir.mkdir(parents=True, exist_ok=True) # type: ignore[union-attr]
return self._cache_dir # type: ignore[return-value]

@cache_dir.setter
def cache_dir(self, value: PathLike) -> None:
Expand Down Expand Up @@ -138,7 +138,7 @@ def _cleanup_config(self) -> dict:
raise NotImplementedError("Must implement method")

@contextmanager
def autosave(self) -> None:
def autosave(self) -> ty.Generator[None, None, None]:
"""Context manager to automatically save project configuration."""
yield
self._export()
Expand Down

0 comments on commit 47ec223

Please sign in to comment.