@@ -658,7 +658,7 @@ def _to_relative_path(self, path: PathLike) -> PathLike:
658
658
return os .path .relpath (path ,self .repo .working_tree_dir )
659
659
660
660
def _preprocess_add_items (
661
- self ,items :Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ]]
661
+ self ,items :Union [ PathLike , Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ] ]]
662
662
)-> Tuple [List [PathLike ],List [BaseIndexEntry ]]:
663
663
"""Split the items into two lists of path strings and BaseEntries."""
664
664
paths = []
@@ -749,7 +749,7 @@ def _entries_for_paths(
749
749
750
750
def add (
751
751
self ,
752
- items :Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ]],
752
+ items :Union [ PathLike , Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ] ]],
753
753
force :bool = True ,
754
754
fprogress :Callable = lambda * args :None ,
755
755
path_rewriter :Union [Callable [...,PathLike ],None ]= None ,
@@ -976,7 +976,7 @@ def _items_to_rela_paths(
976
976
@default_index
977
977
def remove (
978
978
self ,
979
- items :Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ]],
979
+ items :Union [ PathLike , Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ] ]],
980
980
working_tree :bool = False ,
981
981
** kwargs :Any ,
982
982
)-> List [str ]:
@@ -1036,7 +1036,7 @@ def remove(
1036
1036
@default_index
1037
1037
def move (
1038
1038
self ,
1039
- items :Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ]],
1039
+ items :Union [ PathLike , Sequence [Union [PathLike ,Blob ,BaseIndexEntry ,"Submodule" ] ]],
1040
1040
skip_errors :bool = False ,
1041
1041
** kwargs :Any ,
1042
1042
)-> List [Tuple [str ,str ]]: