@@ -603,35 +603,35 @@ def _set_cache_(self, attr: str) -> None:
603
603
process_version = self ._call_process ('version' ) # should be as default *args and **kwargs used
604
604
version_numbers = process_version .split (' ' )[2 ]
605
605
606
- self ._version_info : Tuple [int , int , int , int ] = tuple (
607
- int (n ) for n in version_numbers .split ('.' )[:4 ] if n .isdigit ()
608
- ) # type: ignore # use typeguard here
606
+ self ._version_info = cast ( Tuple [int , int , int , int ],
607
+ tuple ( int (n ) for n in version_numbers .split ('.' )[:4 ] if n .isdigit () )
608
+ )
609
609
else :
610
610
super (Git , self )._set_cache_ (attr )
611
611
# END handle version info
612
612
613
- @property
613
+ @ property
614
614
def working_dir (self ) -> Union [None , PathLike ]:
615
615
""":return: Git directory we are working on"""
616
616
return self ._working_dir
617
617
618
- @property
618
+ @ property
619
619
def version_info (self ) -> Tuple [int , int , int , int ]:
620
620
"""
621
621
:return: tuple(int, int, int, int) tuple with integers representing the major, minor
622
622
and additional version numbers as parsed from git version.
623
623
This value is generated on demand and is cached"""
624
624
return self ._version_info
625
625
626
- @overload
626
+ @ overload
627
627
def execute (self ,
628
628
command : Union [str , Sequence [Any ]],
629
629
* ,
630
630
as_process : Literal [True ]
631
631
) -> 'AutoInterrupt' :
632
632
...
633
633
634
- @overload
634
+ @ overload
635
635
def execute (self ,
636
636
command : Union [str , Sequence [Any ]],
637
637
* ,
@@ -640,7 +640,7 @@ def execute(self,
640
640
) -> Union [str , Tuple [int , str , str ]]:
641
641
...
642
642
643
- @overload
643
+ @ overload
644
644
def execute (self ,
645
645
command : Union [str , Sequence [Any ]],
646
646
* ,
@@ -649,7 +649,7 @@ def execute(self,
649
649
) -> Union [bytes , Tuple [int , bytes , str ]]:
650
650
...
651
651
652
- @overload
652
+ @ overload
653
653
def execute (self ,
654
654
command : Union [str , Sequence [Any ]],
655
655
* ,
@@ -659,7 +659,7 @@ def execute(self,
659
659
) -> str :
660
660
...
661
661
662
- @overload
662
+ @ overload
663
663
def execute (self ,
664
664
command : Union [str , Sequence [Any ]],
665
665
* ,
0 commit comments