aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-12-09 23:55:02 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-12-09 23:55:02 +0100
commit864ac4ec0fb8a1cf65f76e7e89b986b98b28de63 (patch)
treee3015bc36f54ce9aa237d15fda088c4ceb6c390d
parentUpdate make tags to work on BSD. (diff)
downloadmu4web-864ac4ec0fb8a1cf65f76e7e89b986b98b28de63.tar.gz
mu4web-864ac4ec0fb8a1cf65f76e7e89b986b98b28de63.tar.xz
Got code working on Python 3.9
-rw-r--r--mu4web/html_render.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mu4web/html_render.py b/mu4web/html_render.py
index 2411939..1d81321 100644
--- a/mu4web/html_render.py
+++ b/mu4web/html_render.py
@@ -1,9 +1,12 @@
import html
from typing import (
Callable,
- TypeAlias,
Union,
)
+try:
+ from typing import TypeAlias # type: ignore
+except ImportError:
+ from typing import Any as TypeAlias # type: ignore
HTML: TypeAlias = Union[tuple,
list['HTML'],