correct typing errors
This commit is contained in:
parent
8993fbe4c1
commit
d104d994f8
4 changed files with 14 additions and 11 deletions
|
|
@ -15,7 +15,7 @@ def get_tracker(path: str) -> str:
|
|||
def get(path: str, file: str) -> None:
|
||||
tracker = get_tracker(path)
|
||||
if tracker == 'datalad':
|
||||
dl.get_file(path, file)
|
||||
dl.get(path, file)
|
||||
else:
|
||||
raise ValueError(f"Tracker {tracker} is not supported.")
|
||||
return
|
||||
|
|
@ -24,7 +24,7 @@ def get(path: str, file: str) -> None:
|
|||
def save(path: str, message: str, files: list[str]) -> None:
|
||||
tracker = get_tracker(path)
|
||||
if tracker == 'datalad':
|
||||
dl.save(files, message=message, dataset=path)
|
||||
dl.save(path, message, files)
|
||||
else:
|
||||
raise ValueError(f"Tracker {tracker} is not supported.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue