@@ -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
5454class FileDiffContent (BaseModel ):
0 commit comments