From 864ac4ec0fb8a1cf65f76e7e89b986b98b28de63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 9 Dec 2022 23:55:02 +0100 Subject: Got code working on Python 3.9 --- mu4web/html_render.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'], -- cgit v1.2.3