[clang-tools-extra] [clang-tidy] Add type annotations to add_new_check.py, fix minor bug (PR #106801)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 31 10:44:36 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r 2f4232db0b72635b89c2356c8a2c0504b075a0ab...3945829650ac41f587c161cd6fb505225efba379 clang-tools-extra/clang-tidy/add_new_check.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- add_new_check.py 2024-08-31 17:40:17.000000 +0000
+++ add_new_check.py 2024-08-31 17:44:12.662214 +0000
@@ -13,10 +13,11 @@
import itertools
import os
import re
import sys
import textwrap
+
# FIXME Python 3.9: Replace typing.Tuple with builtins.tuple.
from typing import Optional, Tuple
# Adapts the module's CMakelist file. Returns 'True' if it could add a new
``````````
</details>
https://github.com/llvm/llvm-project/pull/106801
More information about the cfe-commits
mailing list