[clang-tools-extra] [clang-tidy][NFC] fix add_new_check python3.8 incompatibility (PR #107871)

Nicolas van Kempen via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 9 08:12:19 PDT 2024


nicovank wrote:

I see `typing.Match` will be [removed in 3.13](https://docs.python.org/3/library/typing.html#typing.Match). I'm not sure if that means it won't work altogether with 3.13 or just the typecheck.

![image](https://github.com/user-attachments/assets/c3d77647-356d-43ba-b344-da8822a0ddf7)

My vote goes to `Any` and switch back to `re.Match` when LLVM minimum is bumped >= 3.9 (#107850).


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


More information about the cfe-commits mailing list