-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Warn for unexpected argument combinations #13509
Warn for unexpected argument combinations #13509
Conversation
@sgugger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on my side! Thanks a lot for your PR!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, just a small modification of the second warning :)
* Warn for unexpected argument combinations * Updated the waning message for pad_to_max_length
* Warn for unexpected argument combinations * Updated the waning message for pad_to_max_length
What does this PR do?
Warn for unexpected argument combinations:
padding is True
andmax_length is not None
padding is True
andpad_to_max_length is not False
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.