5757
5858if TYPE_CHECKING :
5959from .base import IndexFile
60- from objects .tree import TreeCacheTup
60+ from git . objects .tree import TreeCacheTup
6161# from git.objects.fun import EntryTupOrNone
6262
6363# ------------------------------------------------------------------------------------
@@ -250,7 +250,7 @@ def read_cache(stream: IO[bytes]) -> Tuple[int, Dict[Tuple[PathLike, int], 'Inde
250250
251251
252252def write_tree_from_cache (entries :List [IndexEntry ],odb ,sl :slice ,si :int = 0
253- )-> Tuple [bytes ,List [TreeCacheTup ]]:
253+ )-> Tuple [bytes ,List [' TreeCacheTup' ]]:
254254"""Create a tree from the given sorted list of entries and put the respective
255255 trees into the given object database
256256
@@ -260,7 +260,7 @@ def write_tree_from_cache(entries: List[IndexEntry], odb, sl: slice, si: int = 0
260260 :param sl: slice indicating the range we should process on the entries list
261261 :return: tuple(binsha, list(tree_entry, ...)) a tuple of a sha and a list of
262262 tree entries being a tuple of hexsha, mode, name"""
263- tree_items :List [TreeCacheTup ]= []
263+ tree_items :List [' TreeCacheTup' ]= []
264264
265265ci = sl .start
266266end = sl .stop
@@ -306,7 +306,7 @@ def write_tree_from_cache(entries: List[IndexEntry], odb, sl: slice, si: int = 0
306306return (istream .binsha ,tree_items )
307307
308308
309- def _tree_entry_to_baseindexentry (tree_entry :TreeCacheTup ,stage :int )-> BaseIndexEntry :
309+ def _tree_entry_to_baseindexentry (tree_entry :' TreeCacheTup' ,stage :int )-> BaseIndexEntry :
310310return BaseIndexEntry ((tree_entry [1 ],tree_entry [0 ],stage << CE_STAGESHIFT ,tree_entry [2 ]))
311311
312312