@@ -474,7 +474,7 @@ def _traverse(
474
474
ignore_self : int = 1 ,
475
475
as_edge : bool = False ,
476
476
) -> Union [Iterator [Union ["Traversable" , "Blob" ]], Iterator [TraversedTup ]]:
477
- """Iterator yielding items found when traversing self.
477
+ """Iterator yielding items found when traversing ` self` .
478
478
479
479
:param predicate:
480
480
A function ``f(i,d)`` that returns ``False`` if item i at depth ``d`` should
@@ -485,9 +485,10 @@ def _traverse(
485
485
item ``i`` at depth ``d``. Item ``i`` will not be returned.
486
486
487
487
:param depth:
488
- Defines at which level the iteration should not go deeper if -1, there is no
489
- limit if 0, you would effectively only get self, the root of the iteration
490
- i.e. if 1, you would only get the first level of predecessors/successors.
488
+ Defines at which level the iteration should not go deeper if -1. There is no
489
+ limit if 0, you would effectively only get `self`, the root of the
490
+ iteration. If 1, you would only get the first level of
491
+ predecessors/successors.
491
492
492
493
:param branch_first:
493
494
If ``True``, items will be returned branch first, otherwise depth first.
@@ -497,8 +498,8 @@ def _traverse(
497
498
encountered several times. Loops are prevented that way.
498
499
499
500
:param ignore_self:
500
- If ``True``, self will be ignored and automatically pruned from the result.
501
- Otherwise it will be the first item to be returned. If `as_edge` is
501
+ If ``True``, ` self` will be ignored and automatically pruned from the
502
+ result. Otherwise it will be the first item to be returned. If `as_edge` is
502
503
``True``, the source of the first edge is ``None``.
503
504
504
505
:param as_edge:
@@ -507,7 +508,7 @@ def _traverse(
507
508
destination.
508
509
509
510
:return:
510
- Iterator yielding items found when traversing self::
511
+ Iterator yielding items found when traversing ` self` ::
511
512
512
513
Commit -> Iterator[Union[Commit, Tuple[Commit, Commit]] Submodule ->
513
514
Iterator[Submodule, Tuple[Submodule, Submodule]] Tree ->
0 commit comments