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: add fake() support to Literal field type #451

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

garvbox
Copy link
Contributor

@garvbox garvbox commented Oct 9, 2023

Support for the Literal type added in #435 was missing a fake() definition. Added a simple one to pick a random input arg, and also added usage in the pydantic tests which would catch it.

@garvbox
Copy link
Contributor Author

garvbox commented Oct 9, 2023

Please let me know if any issues with style etc for the PR, first time contributing!

@marcosschroh marcosschroh merged commit 70fb280 into marcosschroh:master Oct 9, 2023
5 of 6 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.

None yet

2 participants