Commit 51157ed
Fix Pydantic validator mutating caller's dict (#661)
The collect_additional_datasets model validator was modifying the input
dict in-place, adding an empty 'other_datasets' key. When users reused
their data_request dict (e.g., adding 'infer' after setting 'train'),
the empty 'other_datasets' would cause DataProvider to fail with
"No datasets were requested in data_request".
Co-authored-by: Claude Opus 4.5 <[email protected]>1 parent 2740c3e commit 51157ed
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
0 commit comments