Skip to content

Commit

Permalink
use typing types
Browse files Browse the repository at this point in the history
  • Loading branch information
j042 committed Aug 22, 2024
1 parent e9768e2 commit a117372
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/handle_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
Expand All @@ -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:
Expand Down

0 comments on commit a117372

Please sign in to comment.