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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ValueError message formatting in int2str #3742

Merged
merged 1 commit into from
Feb 17, 2022

Conversation

akulchik
Copy link
Contributor

Hi!

I bumped into this particular ValueError during my work (because an instance of np.int64 was passed instead of regular Python int), and so I had to print(type(values)) myself. Apparently, it's just the missing f to make message an f-string.

It ain't much for a contribution, but it's honest work. Hope it spares someone else a few seconds in the future 馃槂

Copy link
Member

@lhoestq lhoestq left a comment

Choose a reason for hiding this comment

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

Thanks ! Good catch ^^

@lhoestq lhoestq merged commit 9039a0f into huggingface:master Feb 17, 2022
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

2 participants