@@ -658,7 +658,7 @@ def _to_relative_path(self, path: PathLike) -> PathLike:
658658return os .path .relpath (path ,self .repo .working_tree_dir )
659659
660660def _preprocess_add_items (
661- self ,items :Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ]]
661+ self ,items :Union [ PathLike , Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ] ]]
662662 )-> Tuple [List [PathLike ],List [BaseIndexEntry ]]:
663663"""Split the items into two lists of path strings and BaseEntries."""
664664paths = []
@@ -749,7 +749,7 @@ def _entries_for_paths(
749749
750750def add (
751751self ,
752- items :Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ]],
752+ items :Union [ PathLike , Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ] ]],
753753force :bool = True ,
754754fprogress :Callable = lambda * args :None ,
755755path_rewriter :Union [Callable [...,PathLike ],None ]= None ,
@@ -976,7 +976,7 @@ def _items_to_rela_paths(
976976@default_index
977977def remove (
978978self ,
979- items :Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ]],
979+ items :Union [ PathLike , Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ] ]],
980980working_tree :bool = False ,
981981** kwargs :Any ,
982982 )-> List [str ]:
@@ -1036,7 +1036,7 @@ def remove(
10361036@default_index
10371037def move (
10381038self ,
1039- items :Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ]],
1039+ items :Union [ PathLike , Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ] ]],
10401040skip_errors :bool = False ,
10411041** kwargs :Any ,
10421042 )-> List [Tuple [str ,str ]]:
@@ -1478,7 +1478,7 @@ def diff(
14781478paths :Union [PathLike ,List [PathLike ],Tuple [PathLike , ...],None ]= None ,
14791479create_patch :bool = False ,
14801480** kwargs :Any ,
1481- )-> git_diff .DiffIndex :
1481+ )-> git_diff .DiffIndex [ git_diff . Diff ] :
14821482"""Diff this index against the working copy or a :class:`~git.objects.tree.Tree`
14831483 or :class:`~git.objects.commit.Commit` object.
14841484