fix: correct dictionary unpacking in recursively_apply function (#3766)

This commit is contained in:
Quentin Gallouédec
2025-09-18 07:18:28 -06:00
committed by GitHub
parent fe795fd324
commit 3db9fb6991

View File

@ -116,7 +116,7 @@ def recursively_apply(func, data, *args, test_type=is_torch_tensor, error_on_oth
)
elif isinstance(data, Mapping):
return type(data)(
{
**{
k: recursively_apply(
func, v, *args, test_type=test_type, error_on_other_type=error_on_other_type, **kwargs
)