@@ -811,24 +811,24 @@ def blame_incremental(self, rev: str | HEAD, file: str, **kwargs: Any) -> Iterat
811
811
should get a continuous range spanning all line numbers in the file.
812
812
"""
813
813
814
- data = self .git .blame (rev ,'--' ,file ,p = True ,incremental = True ,stdout_as_string = False ,** kwargs )
815
- commits :Dict [str ,Commit ]= {}
814
+ data : bytes = self .git .blame (rev ,'--' ,file ,p = True ,incremental = True ,stdout_as_string = False ,** kwargs )
815
+ commits :Dict [bytes ,Commit ]= {}
816
816
817
817
stream = (line for line in data .split (b'\n ' )if line )
818
818
while True :
819
819
try :
820
820
line = next (stream )# when exhausted, causes a StopIteration, terminating this function
821
821
except StopIteration :
822
822
return
823
- split_line : Tuple [ str , str , str , str ] = line .split ()
824
- hexsha ,orig_lineno_str , lineno_str , num_lines_str = split_line
825
- lineno = int (lineno_str )
826
- num_lines = int (num_lines_str )
827
- orig_lineno = int (orig_lineno_str )
823
+ split_line = line .split ()
824
+ hexsha ,orig_lineno_b , lineno_b , num_lines_b = split_line
825
+ lineno = int (lineno_b )
826
+ num_lines = int (num_lines_b )
827
+ orig_lineno = int (orig_lineno_b )
828
828
if hexsha not in commits :
829
829
# Now read the next few lines and build up a dict of properties
830
830
# for this commit
831
- props = {}
831
+ props : Dict [ bytes , bytes ] = {}
832
832
while True :
833
833
try :
834
834
line = next (stream )
@@ -1126,7 +1126,7 @@ def clone(self, path: PathLike, progress: Optional[Callable] = None,
1126
1126
1127
1127
@classmethod
1128
1128
def clone_from (cls ,url :PathLike ,to_path :PathLike ,progress :Optional [Callable ]= None ,
1129
- env :Optional [Mapping [str ,Any ]]= None ,
1129
+ env :Optional [Mapping [str ,str ]]= None ,
1130
1130
multi_options :Optional [List [str ]]= None ,** kwargs :Any )-> 'Repo' :
1131
1131
"""Create a clone from the given URL
1132
1132