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

[fix] Use HfArgumentParser-compatible typing for prompts #3178

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

tomaarsen
Copy link
Collaborator

Resolves #3090

Hello!

Pull Request overview

  • Use HfArgumentParser-compatible typing for prompts

Details

Resolves #3090 by updating the typing from dict[str, dict[str, str]] | dict[str, str] | str | None to just str | None. I've also added the explanation in the metadata to make sure people are aware that there's more valid options.

And I added a simple test case that just ensures there's no crash. This should ensure that this same issue won't happen anymore.

  • Tom Aarsen

@tomaarsen
Copy link
Collaborator Author

Test failures are clear, I'll go for Optional[str].

@tomaarsen tomaarsen merged commit c68bf68 into UKPLab:master Jan 17, 2025
9 checks passed
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.

Parse arguments with HfArgumentParser
1 participant