[clang-tools-extra] [clang-tidy] remove type annotations that require python3.9 in add_new_check.py (PR #107850)

Nicolas van Kempen via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 9 06:27:24 PDT 2024


================
@@ -511,7 +511,7 @@ def has_auto_fix(check_name: str) -> str:
 
         return ""
 
-    def process_doc(doc_file: Tuple[str, str]) -> Tuple[str, Optional[re.Match[str]]]:
+    def process_doc(doc_file):
----------------
nicovank wrote:

Change the `re.Match[str]` to `typing.Any`? Plus maybe a `FIXME Python 3.9` comment?

https://github.com/llvm/llvm-project/pull/107850


More information about the cfe-commits mailing list