Skip to content

Commit 0921e83

Browse files
committed
Fix static type checker error
Error message: error: "Repo" is not exported from module "git" (reportPrivateImportUsage)
1 parent 671b6ad commit 0921e83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/make_release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from datetime import timezone
88
from pathlib import Path
99

10-
import git
10+
from git.repo import Repo
1111
from github import Github
1212

1313
# The owner and repository name. For example, octocat/Hello-World.
@@ -29,7 +29,7 @@
2929
def main():
3030
# Find most recent tag and timestamp.
3131
# git for-each-ref --format="%(refname:short) | %(creatordate)" "refs/tags/*"
32-
local_repo = git.Repo(ROOT)
32+
local_repo = Repo(ROOT)
3333

3434
# Sort the tags by version.
3535
# git tag --list | sort --reverse --version-sort

0 commit comments

Comments
 (0)