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

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 9 07:55:35 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: Tuple[str, str]) -> Tuple[str, Optional[Any]]:
----------------
HerrCai0907 wrote:

In 3.9, we can import Match from typing

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


More information about the cfe-commits mailing list