fix: resolve CI/CD type errors and workflow issues
This commit is contained in:
@@ -53,7 +53,7 @@ class TerminalFormatter(BaseFormatter):
|
|||||||
return text
|
return text
|
||||||
|
|
||||||
def format(self, result: ReviewResult) -> str:
|
def format(self, result: ReviewResult) -> str:
|
||||||
output = []
|
output: list[Panel | Table] = []
|
||||||
|
|
||||||
if result.error:
|
if result.error:
|
||||||
output.append(Panel(
|
output.append(Panel(
|
||||||
@@ -132,10 +132,10 @@ class MarkdownFormatter(BaseFormatter):
|
|||||||
|
|
||||||
|
|
||||||
def get_formatter(format_type: str = "terminal", **kwargs) -> BaseFormatter:
|
def get_formatter(format_type: str = "terminal", **kwargs) -> BaseFormatter:
|
||||||
formatters = {
|
formatters: dict[str, type[BaseFormatter]] = {
|
||||||
"terminal": TerminalFormatter,
|
"terminal": TerminalFormatter,
|
||||||
"json": JSONFormatter,
|
"json": JSONFormatter,
|
||||||
"markdown": MarkdownFormatter,
|
"markdown": MarkdownFormatter,
|
||||||
}
|
}
|
||||||
formatter_class = formatters.get(format_type, TerminalFormatter)
|
formatter_class = formatters.get(format_type, TerminalFormatter)
|
||||||
return formatter_class(**kwargs)
|
return formatter_class(**kwargs) # type: ignore[arg-type]
|
||||||
|
|||||||
Reference in New Issue
Block a user