From 20c87fbc2677fe24b3f644d681c23d5fb5fa8d48 Mon Sep 17 00:00:00 2001 From: merwanehamadi Date: Wed, 2 Aug 2023 15:08:07 -0700 Subject: [PATCH] Fix typing (#247) --- agbenchmark/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agbenchmark/utils/utils.py b/agbenchmark/utils/utils.py index 7726629b..d42fd69b 100644 --- a/agbenchmark/utils/utils.py +++ b/agbenchmark/utils/utils.py @@ -272,7 +272,7 @@ def calculate_dynamic_paths() -> tuple[Path, str, str, str, str, str]: ) -def get_git_commit_sha(directory: str) -> Optional[str]: +def get_git_commit_sha(directory: Path) -> Optional[str]: try: repo = git.Repo(directory) remote_url = repo.remotes.origin.url