From 54d979d648a74ea77ffedbde8175486a8ea050bb Mon Sep 17 00:00:00 2001 From: Max Mynter Date: Wed, 24 Jan 2024 12:45:31 +0100 Subject: [PATCH] Rephrase warning message for overwriting default --- src/nnbench/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nnbench/runner.py b/src/nnbench/runner.py index a419774..37c11b8 100644 --- a/src/nnbench/runner.py +++ b/src/nnbench/runner.py @@ -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