[clang-tools-extra] [llvm] [Github][CI] Introduce `LintHelper` class in `code-lint-helper.py` (PR #168827)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 4 07:49:17 PST 2025
================
@@ -18,98 +18,65 @@
"""
import argparse
+import github
+import json
import os
import subprocess
import sys
-from typing import List, Optional
+from typing import Any, Dict, Final, List, Sequence
class LintArgs:
- start_rev: str = None
- end_rev: str = None
- repo: str = None
- changed_files: List[str] = []
- token: str = None
+ start_rev: str
+ end_rev: str
+ repo: str
+ changed_files: Sequence[str]
+ token: str
verbose: bool = True
issue_number: int = 0
build_path: str = "build"
clang_tidy_binary: str = "clang-tidy"
- def __init__(self, args: argparse.Namespace = None) -> None:
+ def __init__(self, args: argparse.Namespace) -> None:
if not args is None:
----------------
EugeneZelenko wrote:
```suggestion
if args is not None:
```
https://github.com/llvm/llvm-project/pull/168827
More information about the llvm-commits
mailing list