KEMBAR78
Train args defaulting None marked as Optional by d-miketa · Pull Request #17156 · huggingface/transformers · GitHub
Skip to content

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
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