mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-31 12:43:14 +00:00
Fix static type checker error
Error message:
error: "Repo" is not exported from module "git"
(reportPrivateImportUsage)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user