Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix enforce string #230

Merged
merged 2 commits into from
Aug 8, 2022
Merged

Fix enforce string #230

merged 2 commits into from
Aug 8, 2022

Conversation

lvwerra
Copy link
Member

@lvwerra lvwerra commented Aug 4, 2022

Some casting operations throw ValueErrors while others TypeErrors. With this PR both are cought when inferring the type to make sure the iterative testing of feature types doesn't get interrupted. We didn't catch this so far because we had Sequence first and str second. I updated the test to include both cases, which would fail before and passes now.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Aug 4, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@sashavor sashavor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Super useful, thanks! 🚀

@mathemakitten mathemakitten merged commit a120c67 into main Aug 8, 2022
@mathemakitten mathemakitten deleted the fix-enforce-string branch August 8, 2022 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants