Skip to content

Commit

Permalink
Fix pyflakes
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr committed Dec 8, 2024
1 parent c85c785 commit 6451926
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion pydoctor/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import abc
import ast
from functools import partial
from itertools import chain
from collections import defaultdict
import datetime
Expand Down
2 changes: 1 addition & 1 deletion pydoctor/mro.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

from collections import deque
from itertools import islice
from typing import Callable, List, Tuple, Optional, TypeVar
from typing import List, Tuple, Optional, TypeVar

T = TypeVar('T')

Expand Down
1 change: 0 additions & 1 deletion pydoctor/test/test_mro.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from typing import List, Optional, Type
import pytest

from pydoctor import model, stanutils
from pydoctor.templatewriter import pages, util
Expand Down
4 changes: 2 additions & 2 deletions pydoctor/topsort.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from typing import TypeAlias

T = TypeVar('T')
Graph = TypeAlias = dict[T, list[T]]
Graph: TypeAlias = dict[T, list[T]]

if sys.version_info >= (3, 9):
from graphlib import TopologicalSorter, CycleError
Expand Down Expand Up @@ -113,7 +113,7 @@ def prepare(self):
# nodes as possible before cycles block more progress
cycle = self._find_cycle()
if cycle:
raise CycleError(f"nodes are in a cycle", cycle)
raise CycleError("nodes are in a cycle", cycle)

def get_ready(self):
"""Return a tuple of all the nodes that are ready.
Expand Down

0 comments on commit 6451926

Please sign in to comment.