@@ -615,7 +615,7 @@ def _set_cache_(self, attr: str) -> None:
615615 # END handle version info
616616
617617 @property
618- def working_dir (self ) -> Union [None , str ]:
618+ def working_dir (self ) -> Union [None , PathLike ]:
619619 """:return: Git directory we are working on"""
620620 return self ._working_dir
621621
@@ -1187,7 +1187,7 @@ def __get_object_header(self, cmd, ref: AnyStr) -> Tuple[str, str, int]:
11871187 cmd .stdin .flush ()
11881188 return self ._parse_object_header (cmd .stdout .readline ())
11891189
1190- def get_object_header (self , ref : AnyStr ) -> Tuple [str , str , int ]:
1190+ def get_object_header (self , ref : str ) -> Tuple [str , str , int ]:
11911191 """ Use this method to quickly examine the type and size of the object behind
11921192 the given ref.
11931193
@@ -1198,7 +1198,7 @@ def get_object_header(self, ref: AnyStr) -> Tuple[str, str, int]:
11981198 cmd = self ._get_persistent_cmd ("cat_file_header" , "cat_file" , batch_check = True )
11991199 return self .__get_object_header (cmd , ref )
12001200
1201- def get_object_data (self , ref : AnyStr ) -> Tuple [str , str , int , bytes ]:
1201+ def get_object_data (self , ref : str ) -> Tuple [str , str , int , bytes ]:
12021202 """ As get_object_header, but returns object data as well
12031203 :return: (hexsha, type_string, size_as_int,data_string)
12041204 :note: not threadsafe"""
@@ -1207,7 +1207,7 @@ def get_object_data(self, ref: AnyStr) -> Tuple[str, str, int, bytes]:
12071207 del (stream )
12081208 return (hexsha , typename , size , data )
12091209
1210- def stream_object_data (self , ref : AnyStr ) -> Tuple [str , str , int , 'Git.CatFileContentStream' ]:
1210+ def stream_object_data (self , ref : str ) -> Tuple [str , str , int , 'Git.CatFileContentStream' ]:
12111211 """ As get_object_header, but returns the data as a stream
12121212
12131213 :return: (hexsha, type_string, size_as_int, stream)
0 commit comments