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

Docs: Adds an example to show how exclude_unset works #1173

Merged
merged 1 commit into from
May 24, 2024

Conversation

benjaoming
Copy link
Contributor

Fixes: #1045

I believe the right thing to do here is to iterate over fields to patch and exclude all the unsupplied fields. Preceding documentation already shows how to use fields_optional, but it remains somewhat confusing what to do next.

@horizon365
Copy link

good example

@vitalik
Copy link
Owner

vitalik commented May 24, 2024

Thank you @benjaoming

@vitalik vitalik merged commit bbf1b4b into vitalik:master May 24, 2024
27 checks passed
@benjaoming benjaoming deleted the docs-fix-exclude_unset branch May 24, 2024 07:37
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.

using patch with None, and optional fields
3 participants