From 28ea48ad66e2effa3e0f6b0c26189e995ab0c3c6 Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Thu, 4 Dec 2025 11:34:43 +0100 Subject: [PATCH] typing --- corrlib/tracker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/corrlib/tracker.py b/corrlib/tracker.py index fcf3994..e6d4ad5 100644 --- a/corrlib/tracker.py +++ b/corrlib/tracker.py @@ -3,7 +3,7 @@ from configparser import ConfigParser from .trackers import datalad as dl -def get_tracker(path): +def get_tracker(path: str) -> str: config_path = os.path.join(path, '.corrlib') config = ConfigParser() if os.path.exists(config_path): @@ -12,7 +12,7 @@ def get_tracker(path): return tracker -def get(path, file): +def get(path: str, file: str) -> None: tracker = get_tracker(path) if tracker == 'datalad': dl.get_file(path, file) @@ -21,7 +21,7 @@ def get(path, file): return -def save(path, message, files): +def save(path: str, message: str, files: list[str]) -> None: tracker = get_tracker(path) if tracker == 'datalad': dl.save(files, message=message, dataset=path)