Fix static type checker error

Error message:
    error: "Repo" is not exported from module "git"
    (reportPrivateImportUsage)
This commit is contained in:
Zach Borboa
2023-10-21 19:14:04 -07:00
parent 671b6ad1c6
commit 0921e8391a
+2 -2
View File
@@ -7,7 +7,7 @@ from datetime import datetime
from datetime import timezone
from pathlib import Path
import git
from git.repo import Repo
from github import Github
# The owner and repository name. For example, octocat/Hello-World.
@@ -29,7 +29,7 @@ RECENT_PULL_REQUEST_LIMIT = 10
def main():
# Find most recent tag and timestamp.
# git for-each-ref --format="%(refname:short) | %(creatordate)" "refs/tags/*"
local_repo = git.Repo(ROOT)
local_repo = Repo(ROOT)
# Sort the tags by version.
# git tag --list | sort --reverse --version-sort