Skip to content

Commit 5711f1d

Browse files
committed
Avoid mutable arguments
1 parent 0226850 commit 5711f1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guidellm/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def generate_benchmark_report(
197197
max_requests: Union[Literal["dataset"], int, None],
198198
output_path: str,
199199
cont_refresh_table: bool,
200-
backend_kwargs: Mapping[str, Any] = {},
200+
backend_kwargs: Optional[Mapping[str, Any]] = None,
201201
) -> GuidanceReport:
202202
"""
203203
Generate a benchmark report for a specified backend and dataset.
@@ -230,7 +230,7 @@ def generate_benchmark_report(
230230
backend_type=backend,
231231
target=target,
232232
model=model,
233-
**backend_kwargs,
233+
**(backend_kwargs or {}),
234234
)
235235

236236
request_generator: RequestGenerator

0 commit comments

Comments
 (0)