summaryrefslogtreecommitdiff
path: root/git/index/base.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-05-16 21:21:44 +0100
committerYobmod <yobmod@gmail.com>2021-05-16 21:21:44 +0100
commit595181da70978ed44983a6c0ca4cb6d982ba0e8b (patch)
treede94a35c9bb218ff09324050500d7a0f81b230b2 /git/index/base.py
parentf58702b0c3a0bb58d49b995a7e5479a7b24933e4 (diff)
downloadgitpython-595181da70978ed44983a6c0ca4cb6d982ba0e8b.tar.gz
flake8 and mypy fixes
Diffstat (limited to 'git/index/base.py')
-rw-r--r--git/index/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/index/base.py b/git/index/base.py
index 54f73617..2bb62f32 100644
--- a/git/index/base.py
+++ b/git/index/base.py
@@ -272,7 +272,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable):
return self
@classmethod
- def new(cls, repo: 'Repo', *tree_sha: bytes) -> 'IndexFile':
+ def new(cls, repo: 'Repo', *tree_sha: Union[str, Tree]) -> 'IndexFile':
""" Merge the given treeish revisions into a new index which is returned.
This method behaves like git-read-tree --aggressive when doing the merge.