[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:23 PDT 2024


https://github.com/nicovank commented:

I commented in issue but I think the problem is with `re.Match` not Tuple. [Python docs](https://docs.python.org/3.5/library/typing.html#typing.Tuple) seem to show Tuple had subscripting from its introduction in 3.5.

The script currently passes a strict mypy check which requires all parameters annotated, would be nice to keep it.

```
python3 -m mypy --strict ./clang-tools-extra/clang-tidy/add_new_check.py
```

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


More information about the cfe-commits mailing list