Skip to content

Commit 8fae0a1

Browse files
committed
try to fix type error in test
1 parent d4af227 commit 8fae0a1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/guidellm/benchmark/output.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def save_csv(self, path: Union[str, Path]) -> Path:
229229

230230
return path
231231

232-
def save_html(self, path: str | Path) -> Path:
232+
def save_html(self, path: Union[str, Path]) -> Path:
233233
"""
234234
Download html, inject report data and save to a file.
235235
@@ -244,8 +244,7 @@ def save_html(self, path: str | Path) -> Path:
244244
f"window.{humps.decamelize(k)} = {{}};": f"window.{humps.decamelize(k)} = {json.dumps(v, indent=2)};\n"
245245
for k, v in camel_data.items()
246246
}
247-
create_report(ui_api_data, path)
248-
return path
247+
return create_report(ui_api_data, path)
249248

250249
@staticmethod
251250
def _file_setup(

0 commit comments

Comments
 (0)