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

Commit8797904

Browse files
SjordByron
authored andcommitted
Fix type handing on PushInfoList
1 parent63f4ca3 commit8797904

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎git/remote.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,15 @@ def to_progress_instance(progress: Union[Callable[..., Any], RemoteProgress, Non
117117

118118

119119
classPushInfoList(IterableList):
120-
def__new__(cls)->'IterableList[IterableObj]':
121-
returnsuper(IterableList,cls).__new__(cls,'push_infos')
120+
def__new__(cls)->'PushInfoList':
121+
base=super().__new__(cls,'push_infos')
122+
returncast(PushInfoList,base)
122123

123124
def__init__(self)->None:
124125
super().__init__('push_infos')
125126
self.error=None
126127

127-
defraise_if_error(self):
128+
defraise_if_error(self)->None:
128129
"""
129130
Raise an exception if any ref failed to push.
130131
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp