@@ -235,7 +235,7 @@ def __init__(self, path: Optional[PathLike] = None, odbt: Type[LooseObjectDB] =
235235 def __enter__ (self ) -> 'Repo' :
236236 return self
237237
238- def __exit__ (self , exc_type : TBD , exc_value : TBD , traceback : TBD ) -> None :
238+ def __exit__ (self , * args : Any ) -> None :
239239 self .close ()
240240
241241 def __del__ (self ) -> None :
@@ -445,7 +445,7 @@ def create_tag(self, path: PathLike, ref: str = 'HEAD',
445445 :return: TagReference object """
446446 return TagReference .create (self , path , ref , message , force , ** kwargs )
447447
448- def delete_tag (self , * tags : TBD ) -> None :
448+ def delete_tag (self , * tags : TagReference ) -> None :
449449 """Delete the given tag references"""
450450 return TagReference .delete (self , * tags )
451451
@@ -795,7 +795,7 @@ def active_branch(self) -> Head:
795795 # reveal_type(self.head.reference) # => Reference
796796 return self .head .reference
797797
798- def blame_incremental (self , rev : TBD , file : TBD , ** kwargs : Any ) -> Optional [ Iterator ['BlameEntry' ] ]:
798+ def blame_incremental (self , rev : Union [ str , HEAD ], file : str , ** kwargs : Any ) -> Iterator ['BlameEntry' ]:
799799 """Iterator for blame information for the given file at the given revision.
800800
801801 Unlike .blame(), this does not return the actual file's contents, only
@@ -809,6 +809,7 @@ def blame_incremental(self, rev: TBD, file: TBD, **kwargs: Any) -> Optional[Iter
809809 If you combine all line number ranges outputted by this command, you
810810 should get a continuous range spanning all line numbers in the file.
811811 """
812+
812813 data = self .git .blame (rev , '--' , file , p = True , incremental = True , stdout_as_string = False , ** kwargs )
813814 commits : Dict [str , Commit ] = {}
814815
@@ -870,7 +871,7 @@ def blame_incremental(self, rev: TBD, file: TBD, **kwargs: Any) -> Optional[Iter
870871 safe_decode (orig_filename ),
871872 range (orig_lineno , orig_lineno + num_lines ))
872873
873- def blame (self , rev : TBD , file : TBD , incremental : bool = False , ** kwargs : Any
874+ def blame (self , rev : Union [ str , HEAD ], file : str , incremental : bool = False , ** kwargs : Any
874875 ) -> Union [List [List [Union [Optional ['Commit' ], List [str ]]]], Optional [Iterator [BlameEntry ]]]:
875876 """The blame information for the given file at the given revision.
876877
0 commit comments