Skip to content

Fix: Add validation to prevent duplicate kwargs in load_dataset_builder#8106

Open
lohith360 wants to merge 1 commit intohuggingface:mainfrom
lohith360:main
Open

Fix: Add validation to prevent duplicate kwargs in load_dataset_builder#8106
lohith360 wants to merge 1 commit intohuggingface:mainfrom
lohith360:main

Conversation

@lohith360
Copy link
Copy Markdown

This PR adds a set intersection check in load_dataset_builder to catch overlapping keys between the standard build arguments and config_kwargs.

Previously, passing identical keys caused a confusing Python TypeError during unpacking. This fix intercepts the duplicates early and raises a clear ValueError specifying exactly which keys are overlapping.

Fixes #4910

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant