@@ -3,6 +3,7 @@ from git.exc import NoSuchPathError, InvalidGitRepositoryError
|
|||||||
from git import RemoteProgress
|
from git import RemoteProgress
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
from typing import Union, Optional
|
||||||
|
|
||||||
log = logging.getLogger("rc.repo")
|
log = logging.getLogger("rc.repo")
|
||||||
|
|
||||||
@@ -51,9 +52,9 @@ class GitRemoteProgress(RemoteProgress):
|
|||||||
def update(
|
def update(
|
||||||
self,
|
self,
|
||||||
op_code: int,
|
op_code: int,
|
||||||
cur_count: str | float,
|
cur_count: Union[float, str],
|
||||||
max_count: str | float | None = None,
|
max_count: Optional[float, str] = None,
|
||||||
message: str | None = "",
|
message: Optional[str] = "",
|
||||||
) -> None:
|
) -> None:
|
||||||
# Do i need to update?
|
# Do i need to update?
|
||||||
# -> begin : YES
|
# -> begin : YES
|
||||||
|
|||||||
Reference in New Issue
Block a user