summaryrefslogtreecommitdiff
path: root/git/objects/tree.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-09 10:33:12 +0100
committerYobmod <yobmod@gmail.com>2021-07-09 10:33:12 +0100
commit3710e24d6b60213454af10b0dc0ff0c49717169f (patch)
treeef1d954d0c3e5b4ddabe7f04c76c2e454dfbb9ec /git/objects/tree.py
parent030b1fded8b8e1bcf3855beaf9035b4e3e755f5c (diff)
downloadgitpython-3710e24d6b60213454af10b0dc0ff0c49717169f.tar.gz
Rmv circular import, create Has_id_attribute Protocol instead
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 804554d8..e168c6c4 100644
--- a/git/objects/tree.py
+++ b/git/objects/tree.py
@@ -323,7 +323,7 @@ class Tree(IndexObject, diff.Diffable, util.Traversable, util.Serializable):
super(Tree, self).traverse(predicate, prune, depth, # type: ignore
branch_first, visit_once, ignore_self))
- def list_traverse(self, *args: Any, **kwargs: Any) -> IterableList[Union['Tree', 'Submodule', 'Blob']]:
+ def list_traverse(self, *args: Any, **kwargs: Any) -> IterableList[IndexObjUnion]:
return super(Tree, self).list_traverse(* args, **kwargs)
# List protocol