We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d12901 commit 39751e7Copy full SHA for 39751e7
clang-tools-extra/clang-tidy/add_new_check.py
@@ -17,7 +17,7 @@
17
import textwrap
18
19
# FIXME Python 3.9: Replace typing.Tuple with builtins.tuple.
20
-from typing import Optional, Tuple
+from typing import Optional, Tuple, Match
21
22
23
# 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:
511
512
return ""
513
514
- def process_doc(doc_file: Tuple[str, str]) -> Tuple[str, Optional[re.Match[str]]]:
+ def process_doc(doc_file: Tuple[str, str]) -> Tuple[str, Optional[Match[str]]]:
515
check_name = doc_file[0] + "-" + doc_file[1].replace(".rst", "")
516
517
with io.open(os.path.join(docs_dir, *doc_file), "r", encoding="utf8") as doc:
0 commit comments