From c597a0ef5f447968d5da2f85f529f89699d3d10c Mon Sep 17 00:00:00 2001 From: "r.jaepel" Date: Tue, 20 Aug 2024 17:45:26 +0200 Subject: [PATCH] fixup! Add CADET meta information to Runner classes --- cadet/cadet_dll.py | 2 +- cadet/runner.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cadet/cadet_dll.py b/cadet/cadet_dll.py index 8b10e81..69ca98f 100644 --- a/cadet/cadet_dll.py +++ b/cadet/cadet_dll.py @@ -2115,5 +2115,5 @@ def cadet_commit_hash(self) -> str: return self._cadet_commit_hash @property - def cadet_path(self) -> str | os.PathLike: + def cadet_path(self) -> os.PathLike: return self._cadet_path diff --git a/cadet/runner.py b/cadet/runner.py index 8fb89c5..fff6304 100644 --- a/cadet/runner.py +++ b/cadet/runner.py @@ -33,7 +33,6 @@ class CadetRunnerBase(ABC): Subclasses must implement the `run`, `clear`, and `load_results` methods. """ - cadet_path: Optional[pathlib.Path] = None @abstractmethod def run( @@ -99,7 +98,7 @@ def cadet_commit_hash(self) -> str: @property @abstractmethod - def cadet_path(self) -> str: + def cadet_path(self) -> Optional[os.PathLike]: pass @@ -254,5 +253,5 @@ def cadet_commit_hash(self) -> str: return self._cadet_commit_hash @property - def cadet_path(self) -> str | os.PathLike: + def cadet_path(self) -> os.PathLike: return self._cadet_path