Skip to content

Commit 39751e7

Browse files
authored
[clang-tidy][NFC] fix add_new_check python3.8 incompatibility (#107871)
Fixes: #107846
1 parent 3d12901 commit 39751e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/clang-tidy/add_new_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import textwrap
1818

1919
# FIXME Python 3.9: Replace typing.Tuple with builtins.tuple.
20-
from typing import Optional, Tuple
20+
from typing import Optional, Tuple, Match
2121

2222

2323
# Adapts the module's CMakelist file. Returns 'True' if it could add a new
@@ -511,7 +511,7 @@ def has_auto_fix(check_name: str) -> str:
511511

512512
return ""
513513

514-
def process_doc(doc_file: Tuple[str, str]) -> Tuple[str, Optional[re.Match[str]]]:
514+
def process_doc(doc_file: Tuple[str, str]) -> Tuple[str, Optional[Match[str]]]:
515515
check_name = doc_file[0] + "-" + doc_file[1].replace(".rst", "")
516516

517517
with io.open(os.path.join(docs_dir, *doc_file), "r", encoding="utf8") as doc:

0 commit comments

Comments
 (0)