Fix typehints?
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
parent
c196e33b4b
commit
de15f3d02d
|
@ -3,6 +3,7 @@ from git.exc import NoSuchPathError, InvalidGitRepositoryError
|
|||
from git import RemoteProgress
|
||||
import logging
|
||||
import time
|
||||
from typing import Union, Optional
|
||||
|
||||
log = logging.getLogger("rc.repo")
|
||||
|
||||
|
@ -51,9 +52,9 @@ class GitRemoteProgress(RemoteProgress):
|
|||
def update(
|
||||
self,
|
||||
op_code: int,
|
||||
cur_count: str | float,
|
||||
max_count: str | float | None = None,
|
||||
message: str | None = "",
|
||||
cur_count: Union[float, str],
|
||||
max_count: Optional[float, str] = None,
|
||||
message: Optional[str] = "",
|
||||
) -> None:
|
||||
# Do i need to update?
|
||||
# -> begin : YES
|
||||
|
|
Loading…
Reference in New Issue
Block a user