| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 63f4ca3 commit 8797904
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -117,14 +117,15 @@ def to_progress_instance(progress: Union[Callable[..., Any], RemoteProgress, Non | |||
| 117 | 117 | ||
| 118 | 118 | ||
| 119 | 119 | class PushInfoList(IterableList): | |
| 120 | - def __new__(cls) -> 'IterableList[IterableObj]': | ||
| 121 | - return super(IterableList, cls).__new__(cls, 'push_infos') | ||
| 120 | + def __new__(cls) -> 'PushInfoList': | ||
| 121 | + base = super().__new__(cls, 'push_infos') | ||
| 122 | + return cast(PushInfoList, base) | ||
| 122 | 123 | ||
| 123 | 124 | def __init__(self) -> None: | |
| 124 | 125 | super().__init__('push_infos') | |
| 125 | 126 | self.error = None | |
| 126 | 127 | ||
| 127 | - def raise_if_error(self): | ||
| 128 | + def raise_if_error(self) -> None: | ||
| 128 | 129 | """ | |
| 129 | 130 | Raise an exception if any ref failed to push. | |
| 130 | 131 | """ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments