Skip to content

Commit

Permalink
Fix TypeAlias not being defined on older python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr committed Oct 16, 2024
1 parent 8ac4e14 commit 984318a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pydoctor/epydoc/markup/restructuredtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
from __future__ import annotations
__docformat__ = 'epytext en'

from typing import TYPE_CHECKING, Any, Iterable, List, Optional, Sequence, Set, TypeAlias, cast
from typing import TYPE_CHECKING, Any, Iterable, List, Optional, Sequence, Set, cast
if TYPE_CHECKING:
from typing import TypeAlias

import re
from docutils import nodes

Expand Down

0 comments on commit 984318a

Please sign in to comment.