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

Train args defaulting None marked as Optional #17156

Merged
merged 1 commit into from
May 10, 2022

Conversation

d-miketa
Copy link
Contributor

@d-miketa d-miketa commented May 10, 2022

What does this PR do?

Fixes #16701 by marking every TrainingArguments argument Optional if it currently defaults to None. Other applications which depend on static type hinting will no longer be confused by arguments defaulting to None although their declared type is bool.

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.

@sgugger

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented May 10, 2022

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

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Thanks a lot for fixing those!

@sgugger sgugger merged commit 1766fa2 into huggingface:main May 10, 2022
Narsil pushed a commit to Narsil/transformers that referenced this pull request May 12, 2022
Co-authored-by: Dom Miketa <dmiketa@exscientia.co.uk>
elusenji pushed a commit to elusenji/transformers that referenced this pull request Jun 12, 2022
Co-authored-by: Dom Miketa <dmiketa@exscientia.co.uk>
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.

Optional keys in TrainingArguments aren't always labelled as such
4 participants