diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-12-09 23:55:02 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-12-09 23:55:02 +0100 |
commit | 864ac4ec0fb8a1cf65f76e7e89b986b98b28de63 (patch) | |
tree | e3015bc36f54ce9aa237d15fda088c4ceb6c390d | |
parent | Update make tags to work on BSD. (diff) | |
download | mu4web-864ac4ec0fb8a1cf65f76e7e89b986b98b28de63.tar.gz mu4web-864ac4ec0fb8a1cf65f76e7e89b986b98b28de63.tar.xz |
Got code working on Python 3.9
-rw-r--r-- | mu4web/html_render.py | 5 |
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'], |