Skip to content

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.

4 participants