@@ -615,7 +615,7 @@ def _set_cache_(self, attr: str) -> None:
615
615
# END handle version info
616
616
617
617
@property
618
- def working_dir (self ) -> Union [None , str ]:
618
+ def working_dir (self ) -> Union [None , PathLike ]:
619
619
""":return: Git directory we are working on"""
620
620
return self ._working_dir
621
621
@@ -1187,7 +1187,7 @@ def __get_object_header(self, cmd, ref: AnyStr) -> Tuple[str, str, int]:
1187
1187
cmd .stdin .flush ()
1188
1188
return self ._parse_object_header (cmd .stdout .readline ())
1189
1189
1190
- def get_object_header (self , ref : AnyStr ) -> Tuple [str , str , int ]:
1190
+ def get_object_header (self , ref : str ) -> Tuple [str , str , int ]:
1191
1191
""" Use this method to quickly examine the type and size of the object behind
1192
1192
the given ref.
1193
1193
@@ -1198,7 +1198,7 @@ def get_object_header(self, ref: AnyStr) -> Tuple[str, str, int]:
1198
1198
cmd = self ._get_persistent_cmd ("cat_file_header" , "cat_file" , batch_check = True )
1199
1199
return self .__get_object_header (cmd , ref )
1200
1200
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 ]:
1202
1202
""" As get_object_header, but returns object data as well
1203
1203
:return: (hexsha, type_string, size_as_int,data_string)
1204
1204
:note: not threadsafe"""
@@ -1207,7 +1207,7 @@ def get_object_data(self, ref: AnyStr) -> Tuple[str, str, int, bytes]:
1207
1207
del (stream )
1208
1208
return (hexsha , typename , size , data )
1209
1209
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' ]:
1211
1211
""" As get_object_header, but returns the data as a stream
1212
1212
1213
1213
:return: (hexsha, type_string, size_as_int, stream)
0 commit comments