From d724b9b06fa64ddc154ddd8b391819e0e1f03cbe Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 15 Dec 2023 07:51:23 +0800 Subject: [PATCH] =?UTF-8?q?3.9=20=E4=BD=A0=E6=80=8E=E4=B9=88=E8=BF=99typin?= =?UTF-8?q?g=E9=83=BD=E4=B8=8D=E6=94=AF=E6=8C=81=EF=BC=88=E6=81=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/parse-label.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):