diff --git a/scripts/parse-label.py b/scripts/parse-label.py index 408b796..f456a8c 100644 --- a/scripts/parse-label.py +++ b/scripts/parse-label.py @@ -1,4 +1,5 @@ from pathlib import Path +from typing import Union from pprint import pprint import mistune @@ -10,7 +11,7 @@ from lib_not_dr.types.options import Options ast_markdown = mistune.create_markdown(renderer='ast') -ast_type = list[dict[str, str | dict]] +ast_type = list[dict[str, Union[str, dict]]] class TagParser(Options):