Skip to content

Commit

Permalink
Fix spelling issue
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Romeyn <mromeijn@nvidia.com>
  • Loading branch information
marcromeyn committed Aug 22, 2024
1 parent 3e4d537 commit c284dcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nemo_run/cli/cli_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,16 +1023,16 @@ def dummy_model_config():
signature = inspect.signature(fn.__class__)
arg_name, nested = key, output
else:
splitted, nested = key.split("."), output
for attr in splitted[:-1]:
dot_split, nested = key.split("."), output
for attr in dot_split[:-1]:
try:
nested = parse_attribute(attr, nested)
except AttributeError as e:
raise ArgumentValueError(
f"Invalid attribute: {attr}", key, {"nested": nested}
) from e
signature = inspect.signature(nested.__fn_or_cls__)
arg_name = splitted[-1]
arg_name = dot_split[-1]

param = signature.parameters.get(arg_name)
if param is None:
Expand Down

0 comments on commit c284dcc

Please sign in to comment.