Skip to content

Commit

Permalink
Fix type alias for older python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr committed Dec 8, 2024
1 parent 6451926 commit 6334e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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

0 comments on commit 6334e28

Please sign in to comment.