summaryrefslogtreecommitdiff
path: root/git/index/base.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-09 16:27:34 +0100
committerYobmod <yobmod@gmail.com>2021-07-09 16:27:34 +0100
commit797e962fc1811ddc5a5a34308bd243953eb77135 (patch)
tree8c4d3334c4ae2f4a579ed962c0d1e3b0d7e47b0f /git/index/base.py
parentb03af0547f5381cf4043a43acf533687d91f0ea1 (diff)
downloadgitpython-797e962fc1811ddc5a5a34308bd243953eb77135.tar.gz
Make IndexFile and Diffable .diff() types agree
Diffstat (limited to 'git/index/base.py')
-rw-r--r--git/index/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/git/index/base.py b/git/index/base.py
index 149edf5a..75df5184 100644
--- a/git/index/base.py
+++ b/git/index/base.py
@@ -1273,7 +1273,8 @@ class IndexFile(LazyMixin, git_diff.Diffable, Serializable):
# @ default_index, breaks typing for some reason, copied into function
def diff(self,
- other: Union[git_diff.Diffable.Index, 'IndexFile.Index', Treeish, None, object] = git_diff.Diffable.Index,
+ other: Union[Type['git_diff.Diffable.Index'], 'IndexFile.Index',
+ 'Tree', 'Commit', str, None] = git_diff.Diffable.Index,
paths: Union[PathLike, List[PathLike], Tuple[PathLike, ...], None] = None,
create_patch: bool = False, **kwargs: Any
) -> git_diff.DiffIndex: