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

Document fields with a default_factory as optional in template #35

Merged
merged 2 commits into from
Jul 25, 2023

Conversation

mthuurne
Copy link
Member

For list and dict used as factories we show [] and {} as the default value, respectively. For other factories we just list the field as optional without mentioning the default.

Closes #34

mthuurne added 2 commits July 25, 2023 16:52
For `list` and `dict` used as factories we use `[]` and `{}` as the
default value, respectively. For other factories we just list the
field as optional without mentioning the default.

Closes #34
@mthuurne mthuurne merged commit 593d7c7 into main Jul 25, 2023
@mthuurne mthuurne deleted the default_factory branch July 25, 2023 18:17
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.

Fields with a default_factory must be considered optional
1 participant