From a1173723172e42c4929f19647efc0179388eb1a2 Mon Sep 17 00:00:00 2001 From: Jaewook Lee Date: Thu, 22 Aug 2024 20:38:13 +0200 Subject: [PATCH] use typing types --- docs/source/handle_markdown.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/handle_markdown.py b/docs/source/handle_markdown.py index 36d7692bf..fffcd723d 100644 --- a/docs/source/handle_markdown.py +++ b/docs/source/handle_markdown.py @@ -16,6 +16,7 @@ import pathlib import re import warnings +from typing import List, Tuple # Path to this file. file_path = os.path.abspath(os.path.dirname(__file__)) @@ -37,7 +38,7 @@ def get_markdown_links(line: str) -> str: return possible if possible else "" -def get_special_links(line: str) -> list[tuple[str, str]]: +def get_special_links(line: str) -> List[Tuple[str, str]]: """Get the special links from a string. Args: