diff options
author | Yobmod <yobmod@gmail.com> | 2021-05-16 18:10:05 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-05-16 18:10:05 +0100 |
commit | 11d91e245194cd9a2e44b81b2b3c62514596c578 (patch) | |
tree | 199f67a8713331fa71fc8fd190c23d02db702341 /git/index/base.py | |
parent | 78d12aa7c922551dddd7168498e29eae32c9d109 (diff) | |
download | gitpython-11d91e245194cd9a2e44b81b2b3c62514596c578.tar.gz |
Add remaining types to IndexFile ._preprocess_add_items() to .diff()
Diffstat (limited to 'git/index/base.py')
-rw-r--r-- | git/index/base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git/index/base.py b/git/index/base.py index f2ba71e0..cf7fafef 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -586,7 +586,8 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): raise ValueError("Absolute path %r is not in git repository at %r" % (path, self.repo.working_tree_dir)) return os.path.relpath(path, self.repo.working_tree_dir) - def _preprocess_add_items(self, items): + def _preprocess_add_items(self, items: Sequence[Union[PathLike, Blob, BaseIndexEntry, Submodule]] + ) -> Tuple[List[PathLike], List[BaseIndexEntry]]: """ Split the items into two lists of path strings and BaseEntries. """ paths = [] entries = [] |