Skip to content

Commit 11d91e2

Browse files
committed
Add remaining types to IndexFile ._preprocess_add_items() to .diff()
1 parent 78d12aa commit 11d91e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎git/index/base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,8 @@ def _to_relative_path(self, path: PathLike) -> PathLike:
586586
raise ValueError("Absolute path %r is not in git repository at %r" % (path, self.repo.working_tree_dir))
587587
return os.path.relpath(path, self.repo.working_tree_dir)
588588

589-
def _preprocess_add_items(self, items):
589+
def _preprocess_add_items(self, items: Sequence[Union[PathLike, Blob, BaseIndexEntry, Submodule]]
590+
) -> Tuple[List[PathLike], List[BaseIndexEntry]]:
590591
""" Split the items into two lists of path strings and BaseEntries. """
591592
paths = []
592593
entries = []

0 commit comments

Comments
 (0)