3636
3737# typing-------------------------------------------------------
3838
39- from typing import Any ,Optional ,Set ,TYPE_CHECKING ,Union
39+ from typing import Any ,Callable , Optional ,Set ,TYPE_CHECKING ,Union
4040
4141from git .types import PathLike ,Literal
4242
5555#{ Utilities
5656
5757
58- def add_progress (kwargs :Any ,git :Git ,progress :RemoteProgress )-> Any :
58+ def add_progress (kwargs :Any ,git :Git ,progress :Optional [ Callable [..., Any ]] )-> Any :
5959"""Add the --progress flag to the given kwargs dict if supported by the
6060 git command. If the actual progress in the given progress instance is not
6161 given, we do not request any progress
@@ -71,7 +71,7 @@ def add_progress(kwargs: Any, git: Git, progress: RemoteProgress) -> Any:
7171#} END utilities
7272
7373
74- def to_progress_instance (progress :Optional [ RemoteProgress ])-> Union [RemoteProgress ,CallableRemoteProgress ]:
74+ def to_progress_instance (progress :Callable [..., Any ])-> Union [RemoteProgress ,CallableRemoteProgress ]:
7575"""Given the 'progress' return a suitable object derived from
7676 RemoteProgress().
7777 """