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: also set default_factory to None when fields are optional #1100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fk128
Copy link

@fk128 fk128 commented Feb 28, 2024

This also set default_factory = None when using fields_optional='__all__'.

It is related to this issue #1080

fix `TypeError: cannot specify both default and default_factory`
@bartoszgrabski
Copy link

Fixes #1019 as well

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.

2 participants