summaryrefslogtreecommitdiff
path: root/git/objects/tree.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2021-08-03 17:06:31 +0100
committerGitHub <noreply@github.com>2021-08-03 17:06:31 +0100
commit05c77cf06e82f7932fb9775fad74251ad6c8aa4f (patch)
tree2491f8abc76300493fc80251fa21a967db48c375 /git/objects/tree.py
parent335e59dc2cece491a5c5d42396ce70d4ed0715b5 (diff)
parent0b89bfe855f0faadf359efcfad8ae752d98c6032 (diff)
downloadgitpython-05c77cf06e82f7932fb9775fad74251ad6c8aa4f.tar.gz
Merge branch 'main' into patch-1
Diffstat (limited to 'git/objects/tree.py')
-rw-r--r--git/objects/tree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/tree.py b/git/objects/tree.py
index 0cceb59a..22531895 100644
--- a/git/objects/tree.py
+++ b/git/objects/tree.py
@@ -215,7 +215,7 @@ class Tree(IndexObject, git_diff.Diffable, util.Traversable, util.Serializable):
super(Tree, self).__init__(repo, binsha, mode, path)
@ classmethod
- def _get_intermediate_items(cls, index_object: 'Tree',
+ def _get_intermediate_items(cls, index_object: IndexObjUnion,
) -> Union[Tuple['Tree', ...], Tuple[()]]:
if index_object.type == "tree":
return tuple(index_object._iter_convert_to_object(index_object._cache))