Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Commit 0e4cd66

Browse files
authored
Fix error message which would print the article "the" twice. (#764)
In all cases, `arg_description` already contains the article "the". The error message would then contain "the" twice, for instance "Intead, the the targets should...". Also fixed some formatting issues caught by lint.
1 parent f141bfa commit 0e4cd66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keras_core/trainers/epoch_iterator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def num_batches(self):
220220
def raise_unsupported_arg(arg_name, arg_description, input_type):
221221
raise ValueError(
222222
f"When providing `x` as a {input_type}, `{arg_name}` "
223-
f"should not be passed. Instead, the {arg_description} should "
223+
f"should not be passed. Instead, {arg_description} should "
224224
f"be included as part of the {input_type}."
225225
)
226226

0 commit comments

Comments
 (0)