Skip to content

Commit

Permalink
Rephrase warning message for overwriting default
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmynter committed Jan 24, 2024
1 parent 7a1aa9e commit 54d979d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nnbench/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _check(params: dict[str, Any], benchmarks: list[Benchmark]) -> None:
for name, param in inspect.signature(bm.fn).parameters.items():
if not param.default == inspect.Parameter.empty and param in params:
logger.warn(
f"You supplied parameter {name!r} to function {{bm.fn.__name__}} and overwrite its default value"
f"You supplied parameter {name!r} it overwrites thhe default in function {{bm.fn.__name__}}"
)

param_type = param.annotation
Expand Down

0 comments on commit 54d979d

Please sign in to comment.