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: flatten_annotation behaviour for Optional #440

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Conversation

sam-or
Copy link
Contributor

@sam-or sam-or commented Nov 14, 2023

Pull Request Checklist

  • New code has 100% test coverage
  • (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
  • (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR
  • Pre-Commit Checks were ran and passed
  • Tests were ran and passed

Description

polyfactoryutils.helpers.flatten_annotation does not handle Optional properly

Close Issue(s)

Fixes: #439

@sam-or sam-or requested review from a team as code owners November 14, 2023 22:57
@sam-or
Copy link
Contributor Author

sam-or commented Nov 14, 2023

@guacs Sorry I let this one split through some how, simple fix. Can you please review?

Copy link

Documentation preview will be available shortly at https://litestar-org.github.io/polyfactory-docs-preview/440

@guacs
Copy link
Member

guacs commented Nov 15, 2023

@guacs Sorry I let this one split through some how, simple fix. Can you please review?

No worries. It happens. Thanks for the fix, btw :)

@guacs guacs merged commit b479e4a into litestar-org:main Nov 15, 2023
20 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.

Bug: polyfactoryutils.helpers.flatten_annotation does not handle Optional properly
2 participants