Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbaec2e2

Browse files
committed
make progress types more general
1 parentc08f592 commitbaec2e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎git/remote.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# typing-------------------------------------------------------
3838

39-
fromtypingimportAny,Optional,Set,TYPE_CHECKING,Union
39+
fromtypingimportAny,Callable,Optional,Set,TYPE_CHECKING,Union
4040

4141
fromgit.typesimportPathLike,Literal
4242

@@ -55,7 +55,7 @@
5555
#{ Utilities
5656

5757

58-
defadd_progress(kwargs:Any,git:Git,progress:RemoteProgress)->Any:
58+
defadd_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-
defto_progress_instance(progress:Optional[RemoteProgress])->Union[RemoteProgress,CallableRemoteProgress]:
74+
defto_progress_instance(progress:Callable[...,Any])->Union[RemoteProgress,CallableRemoteProgress]:
7575
"""Given the 'progress' return a suitable object derived from
7676
RemoteProgress().
7777
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp