File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ def remote_ref(self) -> Union[RemoteReference, TagReference]:
167167 # END
168168
169169 @classmethod
170- def _from_line (cls , remote , line : str ) -> 'PushInfo' :
170+ def _from_line (cls , remote : 'Remote' , line : str ) -> 'PushInfo' :
171171 """Create a new PushInfo instance as parsed from line which is expected to be like
172172 refs/heads/master:refs/heads/master 05d2687..1d0568e as bytes"""
173173 control_character , from_to , summary = line .split ('\t ' , 3 )
@@ -476,10 +476,10 @@ def __repr__(self) -> str:
476476 def __eq__ (self , other : object ) -> bool :
477477 return isinstance (other , type (self )) and self .name == other .name
478478
479- def __ne__ (self , other ) :
479+ def __ne__ (self , other : object ) -> bool :
480480 return not (self == other )
481481
482- def __hash__ (self ):
482+ def __hash__ (self ) -> int :
483483 return hash (self .name )
484484
485485 def exists (self ) -> bool :
You can’t perform that action at this time.
0 commit comments