fix: resolve CI/CD type errors and workflow issues
Some checks failed
CI / test (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-02-05 06:48:08 +00:00
parent 60e6ba857c
commit 58a45aa7bf

View File

@@ -53,7 +53,7 @@ class TerminalFormatter(BaseFormatter):
return text
def format(self, result: ReviewResult) -> str:
output = []
output: list[Panel | Table] = []
if result.error:
output.append(Panel(
@@ -132,10 +132,10 @@ class MarkdownFormatter(BaseFormatter):
def get_formatter(format_type: str = "terminal", **kwargs) -> BaseFormatter:
formatters = {
formatters: dict[str, type[BaseFormatter]] = {
"terminal": TerminalFormatter,
"json": JSONFormatter,
"markdown": MarkdownFormatter,
}
formatter_class = formatters.get(format_type, TerminalFormatter)
return formatter_class(**kwargs)
return formatter_class(**kwargs) # type: ignore[arg-type]