summaryrefslogtreecommitdiff
path: root/git/index/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/index/base.py')
-rw-r--r--git/index/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/git/index/base.py b/git/index/base.py
index bd3dde99..6738e223 100644
--- a/git/index/base.py
+++ b/git/index/base.py
@@ -68,7 +68,7 @@ from .util import (
# typing -----------------------------------------------------------------------------
from typing import (Any, BinaryIO, Callable, Dict, IO, Iterable, Iterator, List, NoReturn,
- Sequence, TYPE_CHECKING, Tuple, Union)
+ Sequence, TYPE_CHECKING, Tuple, Type, Union)
from git.types import Commit_ish, PathLike, TBD
@@ -575,8 +575,8 @@ class IndexFile(LazyMixin, git_diff.Diffable, Serializable):
root_tree._cache = tree_items # type: ignore
return root_tree
- def _process_diff_args(self, args: List[Union[str, git_diff.Diffable, object]]
- ) -> List[Union[str, git_diff.Diffable, object]]:
+ def _process_diff_args(self, args: List[Union[PathLike, 'git_diff.Diffable', Type['git_diff.Diffable.Index']]]
+ ) -> List[Union[PathLike, 'git_diff.Diffable', Type['git_diff.Diffable.Index']]]:
try:
args.pop(args.index(self))
except IndexError: