Skip to content

Commit ff4c365

Browse files
committed
mypy fix
1 parent 1a0bb05 commit ff4c365

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

codeflash/github/PrComment.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def to_json(self) -> dict[str, Union[str, int, dict[str, dict[str, int]], list[B
3131
if name:
3232
report_table[name] = result
3333

34-
result: dict[str, Union[str, int, dict[str, dict[str, int]], list[BenchmarkDetail], None]] = {
34+
result: dict[str, Union[str, int, dict[str, dict[str, int]], list[BenchmarkDetail], None]] = { # type: ignore[no-redef]
3535
"optimization_explanation": self.optimization_explanation,
3636
"best_runtime": humanize_runtime(self.best_runtime),
3737
"original_runtime": humanize_runtime(self.original_runtime),
@@ -45,10 +45,10 @@ def to_json(self) -> dict[str, Union[str, int, dict[str, dict[str, int]], list[B
4545
}
4646

4747
if self.original_async_throughput is not None and self.best_async_throughput is not None:
48-
result["original_async_throughput"] = str(self.original_async_throughput)
49-
result["best_async_throughput"] = str(self.best_async_throughput)
48+
result["original_async_throughput"] = str(self.original_async_throughput) # type: ignore[assignment]
49+
result["best_async_throughput"] = str(self.best_async_throughput) # type: ignore[assignment]
5050

51-
return result
51+
return result # type: ignore[return-value]
5252

5353

5454
class FileDiffContent(BaseModel):

0 commit comments

Comments
 (0)