Fix typing (#247)

This commit is contained in:
merwanehamadi
2023-08-02 15:08:07 -07:00
committed by GitHub
parent 143db2540c
commit 20c87fbc26

View File

@@ -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