1
0
Fork 0

Adjustment for typed hints

This commit is contained in:
Luca Beltrame 2022-01-15 09:00:54 +01:00
parent f18ac1ff8e
commit 5a08c4ea0c
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -12,6 +12,7 @@ from typing import Union, Dict, Any
from urllib.parse import quote from urllib.parse import quote
import git import git
from git.repo import Repo
import requests import requests
import sarge import sarge
@ -193,7 +194,7 @@ def notify_matrix(stats: Dict[str, Dict[str, int]]) -> None:
def commit_changes(cache_file: str, repo_home: str) -> None: def commit_changes(cache_file: str, repo_home: str) -> None:
repo = git.Repo(repo_home) repo = Repo(repo_home)
repo.index.add([cache_file]) repo.index.add([cache_file])
repo.index.commit("[OBS unstable update bot] Update caches") repo.index.commit("[OBS unstable update bot] Update caches")
origin = repo.remotes["origin"] origin = repo.remotes["origin"]