@@ -474,7 +474,7 @@ def _traverse(
474474 ignore_self : int = 1 ,
475475 as_edge : bool = False ,
476476 ) -> Union [Iterator [Union ["Traversable" , "Blob" ]], Iterator [TraversedTup ]]:
477- """Iterator yielding items found when traversing self.
477+ """Iterator yielding items found when traversing ` self` .
478478
479479 :param predicate:
480480 A function ``f(i,d)`` that returns ``False`` if item i at depth ``d`` should
@@ -485,9 +485,10 @@ def _traverse(
485485 item ``i`` at depth ``d``. Item ``i`` will not be returned.
486486
487487 :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.
491492
492493 :param branch_first:
493494 If ``True``, items will be returned branch first, otherwise depth first.
@@ -497,8 +498,8 @@ def _traverse(
497498 encountered several times. Loops are prevented that way.
498499
499500 :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
502503 ``True``, the source of the first edge is ``None``.
503504
504505 :param as_edge:
@@ -507,7 +508,7 @@ def _traverse(
507508 destination.
508509
509510 :return:
510- Iterator yielding items found when traversing self::
511+ Iterator yielding items found when traversing ` self` ::
511512
512513 Commit -> Iterator[Union[Commit, Tuple[Commit, Commit]] Submodule ->
513514 Iterator[Submodule, Tuple[Submodule, Submodule]] Tree ->
0 commit comments