Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HAOCHENYE committed Jan 2, 2024
1 parent 08e21e8 commit 2aacce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmengine/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _lazy2string(cfg_dict, dict_type=None):
{k: _lazy2string(v, dict_type)
for k, v in dict.items(cfg_dict)})
elif isinstance(cfg_dict, (tuple, list)):
return type(cfg_dict)(_lazy2string(v) for v in cfg_dict)
return type(cfg_dict)(_lazy2string(v, dict_type) for v in cfg_dict)
elif isinstance(cfg_dict, (LazyAttr, LazyObject)):
return f'{cfg_dict.module}.{str(cfg_dict)}'
else:
Expand Down

0 comments on commit 2aacce8

Please sign in to comment.