Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr authored Dec 12, 2024
1 parent 431a976 commit 0f32429
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pydoctor/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ def is_exception(cls: 'Class') -> bool:

def topsort(graph: Mapping[Any, Sequence[T]]) -> Iterable[T]:
"""
Given a mapping where each keys corespond to a node
and keys the predecessors of the node, return the topological order of the nodes.
Given a mapping where each key-value pair correspond to a node and it's
predecessors, return the topological order of the nodes.
This is a simpple wrapper for L{graphlib.TopologicalSorter.static_order}.
"""
Expand Down Expand Up @@ -674,7 +674,7 @@ def compute_mros(self) -> None:

for cls in static_order:
if cls in self.computed_mros or isinstance(cls, str):
# If it's already computed, it means it's boggus like with cycle or something.
# If it's already computed, it means it's bogus
continue
self.computed_mros[cls] = cls._mro = self._compute_mro(cls)

Expand Down

0 comments on commit 0f32429

Please sign in to comment.