@@ -422,14 +422,14 @@ def _to_full_tag_path(path):
422
422
423
423
def create_head (self , path : PathLike , commit : str = 'HEAD' ,
424
424
force : bool = False , logmsg : Optional [str ] = None
425
- ) -> Head :
425
+ ) -> ' Head' :
426
426
"""Create a new head within the repository.
427
427
For more documentation, please see the Head.create method.
428
428
429
429
:return: newly created Head Reference"""
430
430
return Head .create (self , path , commit , logmsg , force )
431
431
432
- def delete_head (self , * heads : 'SymbolicReference ' , ** kwargs : Any ) -> None :
432
+ def delete_head (self , * heads : 'Head ' , ** kwargs : Any ) -> None :
433
433
"""Delete the given heads
434
434
435
435
:param kwargs: Additional keyword arguments to be passed to git-branch"""
@@ -788,10 +788,10 @@ def ignored(self, *paths: PathLike) -> List[PathLike]:
788
788
return proc .replace ("\\ \\ " , "\\ " ).replace ('"' , "" ).split ("\n " )
789
789
790
790
@property
791
- def active_branch (self ) -> 'SymbolicReference' :
791
+ def active_branch (self ) -> Head :
792
792
"""The name of the currently active branch.
793
-
794
793
:return: Head to the active branch"""
794
+ # reveal_type(self.head.reference) # => Reference
795
795
return self .head .reference
796
796
797
797
def blame_incremental (self , rev : TBD , file : TBD , ** kwargs : Any ) -> Optional [Iterator ['BlameEntry' ]]:
0 commit comments