Adjustment for typed hints
This commit is contained in:
		
					parent
					
						
							
								f18ac1ff8e
							
						
					
				
			
			
				commit
				
					
						5a08c4ea0c
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -12,6 +12,7 @@ from typing import Union, Dict, Any
 | 
			
		|||
from urllib.parse import quote
 | 
			
		||||
 | 
			
		||||
import git
 | 
			
		||||
from git.repo import Repo
 | 
			
		||||
import requests
 | 
			
		||||
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:
 | 
			
		||||
 | 
			
		||||
    repo = git.Repo(repo_home)
 | 
			
		||||
    repo = Repo(repo_home)
 | 
			
		||||
    repo.index.add([cache_file])
 | 
			
		||||
    repo.index.commit("[OBS unstable update bot] Update caches")
 | 
			
		||||
    origin = repo.remotes["origin"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue