Skip to content

Commit 5eea891

Browse files
committed
Fix list_traverse() docstring for Autodoc
1 parent 3710e24 commit 5eea891

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎git/objects/tree.py

+5
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,11 @@ def traverse(self, # type: ignore # overrides super()
324324
branch_first, visit_once, ignore_self))
325325

326326
def list_traverse(self, *args: Any, **kwargs: Any) -> IterableList[IndexObjUnion]:
327+
"""
328+
:return: IterableList with the results of the traversal as produced by
329+
traverse()
330+
Tree -> IterableList[Union['Submodule', 'Tree', 'Blob']]
331+
"""
327332
return super(Tree, self).list_traverse(* args, **kwargs)
328333

329334
# List protocol

0 commit comments

Comments
 (0)