@@ -593,7 +593,7 @@ def _to_relative_path(self, path: PathLike) -> PathLike:
593593 raise ValueError ("Absolute path %r is not in git repository at %r" % (path , self .repo .working_tree_dir ))
594594 return os .path .relpath (path , self .repo .working_tree_dir )
595595
596- def _preprocess_add_items (self , items : Sequence [Union [PathLike , Blob , BaseIndexEntry , Submodule ]]
596+ def _preprocess_add_items (self , items : Sequence [Union [PathLike , Blob , BaseIndexEntry , ' Submodule' ]]
597597 ) -> Tuple [List [PathLike ], List [BaseIndexEntry ]]:
598598 """ Split the items into two lists of path strings and BaseEntries. """
599599 paths = []
@@ -664,7 +664,7 @@ def _entries_for_paths(self, paths: List[str], path_rewriter: Callable, fprogres
664664 # END path handling
665665 return entries_added
666666
667- def add (self , items : Sequence [Union [PathLike , Blob , BaseIndexEntry , Submodule ]], force : bool = True ,
667+ def add (self , items : Sequence [Union [PathLike , Blob , BaseIndexEntry , ' Submodule' ]], force : bool = True ,
668668 fprogress : Callable = lambda * args : None , path_rewriter : Callable = None ,
669669 write : bool = True , write_extension_data : bool = False ) -> List [BaseIndexEntry ]:
670670 """Add files from the working tree, specific blobs or BaseIndexEntries
0 commit comments