[clang-tools-extra] 408fe1d - [NFC][run-clang-tidy] Add minor type hints (#151873)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 3 09:51:57 PDT 2025
Author: Nicolas van Kempen
Date: 2025-08-03T09:51:54-07:00
New Revision: 408fe1d369df926eecd6c15ce939d38652b4b58d
URL: https://github.com/llvm/llvm-project/commit/408fe1d369df926eecd6c15ce939d38652b4b58d
DIFF: https://github.com/llvm/llvm-project/commit/408fe1d369df926eecd6c15ce939d38652b4b58d.diff
LOG: [NFC][run-clang-tidy] Add minor type hints (#151873)
This script passes
```
python3 -m mypy --strict clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
```
Added:
Modified:
clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
index d307b26ea0d34..80f1766b0bf10 100755
--- a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
+++ b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
@@ -236,7 +236,7 @@ def print_profile_data(aggregated_data: Dict[str, float]) -> None:
checkers.items(), key=lambda x: x[1]["user"] + x[1]["sys"], reverse=True
)
- def print_stderr(*args, **kwargs) -> None:
+ def print_stderr(*args: Any, **kwargs: Any) -> None:
print(*args, file=sys.stderr, **kwargs)
print_stderr(
More information about the cfe-commits
mailing list