| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -517,6 +517,9 @@ def iter_items(cls, repo: "Repo", *args: Any, **kwargs: Any) -> NoReturn: # -> | |||
| 517 | 517 | raise NotImplementedError | |
| 518 | 518 | ||
| 519 | 519 | ||
| 520 | + Progress = Union[RemoteProgress, "UpdateProgress", Callable[..., RemoteProgress], None] | ||
| 521 | + | ||
| 522 | + | ||
| 520 | 523 | class Remote(LazyMixin, IterableObj): | |
| 521 | 524 | """Provides easy read and write access to a git remote. | |
| 522 | 525 | ||
@@ -872,7 +875,7 @@ def update(self, **kwargs: Any) -> "Remote": | |||
| 872 | 875 | def _get_fetch_info_from_stderr( | |
| 873 | 876 | self, | |
| 874 | 877 | proc: "Git.AutoInterrupt", | |
| 875 | - progress: Union[Callable[..., Any], RemoteProgress, None], | ||
| 878 | + progress: Progress, | ||
| 876 | 879 | kill_after_timeout: Union[None, float] = None, | |
| 877 | 880 | ) -> IterableList["FetchInfo"]: | |
| 878 | 881 | progress = to_progress_instance(progress) | |
@@ -1000,7 +1003,7 @@ def _assert_refspec(self) -> None: | |||
| 1000 | 1003 | def fetch( | |
| 1001 | 1004 | self, | |
| 1002 | 1005 | refspec: Union[str, List[str], None] = None, | |
| 1003 | - progress: Union[RemoteProgress, None, "UpdateProgress"] = None, | ||
| 1006 | + progress: Progress = None, | ||
| 1004 | 1007 | verbose: bool = True, | |
| 1005 | 1008 | kill_after_timeout: Union[None, float] = None, | |
| 1006 | 1009 | allow_unsafe_protocols: bool = False, | |
@@ -1081,7 +1084,7 @@ def fetch( | |||
| 1081 | 1084 | def pull( | |
| 1082 | 1085 | self, | |
| 1083 | 1086 | refspec: Union[str, List[str], None] = None, | |
| 1084 | - progress: Union[RemoteProgress, "UpdateProgress", None] = None, | ||
| 1087 | + progress: Progress = None, | ||
| 1085 | 1088 | kill_after_timeout: Union[None, float] = None, | |
| 1086 | 1089 | allow_unsafe_protocols: bool = False, | |
| 1087 | 1090 | allow_unsafe_options: bool = False, | |
@@ -1135,7 +1138,7 @@ def pull( | |||
| 1135 | 1138 | def push( | |
| 1136 | 1139 | self, | |
| 1137 | 1140 | refspec: Union[str, List[str], None] = None, | |
| 1138 | - progress: Union[RemoteProgress, "UpdateProgress", Callable[..., RemoteProgress], None] = None, | ||
| 1141 | + progress: Progress = None, | ||
| 1139 | 1142 | kill_after_timeout: Union[None, float] = None, | |
| 1140 | 1143 | allow_unsafe_protocols: bool = False, | |
| 1141 | 1144 | allow_unsafe_options: bool = False, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments