summaryrefslogtreecommitdiff
path: root/git/index/fun.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-05-16 18:04:30 +0100
committerYobmod <yobmod@gmail.com>2021-05-16 18:04:30 +0100
commit78d12aa7c922551dddd7168498e29eae32c9d109 (patch)
treeee45d8792ee808a4316cfac5133397a7becf8334 /git/index/fun.py
parentc3f91bd1c0e8aef1b416ae6b1f55e7bd93a4f281 (diff)
downloadgitpython-78d12aa7c922551dddd7168498e29eae32c9d109.tar.gz
Add remaining types to IndexFile ._preprocess_add_items() to .diff()
Diffstat (limited to 'git/index/fun.py')
-rw-r--r--git/index/fun.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/index/fun.py b/git/index/fun.py
index 466d323c..cc43f0a4 100644
--- a/git/index/fun.py
+++ b/git/index/fun.py
@@ -13,7 +13,7 @@ from stat import (
S_IFREG,
)
import subprocess
-from typing import List, Tuple, cast
+from typing import List, Tuple, Union, cast
from git.cmd import PROC_CREATIONFLAGS, handle_process_output
from git.compat import (
@@ -168,7 +168,7 @@ def read_header(stream):
return version, num_entries
-def entry_key(*entry) -> Tuple[PathLike, int]:
+def entry_key(*entry: Union[BaseIndexEntry, PathLike, int]) -> Tuple[PathLike, int]:
""":return: Key suitable to be used for the index.entries dictionary
:param entry: One instance of type BaseIndexEntry or the path and the stage"""
if len(entry) == 1: