-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow assigning
None
to optional fields
Summary: Optional fields have a default value of `None` and unqualified fields cannot be set to `None`. However, after setting a value for the optional fields, there was no mechanism (except for `_fbthrift_internal_resetFieldToStandardDefault()`) to reset the optional field to its default value of `None`. This diff enables assigning `None` to optional fields. Reviewed By: ahilger Differential Revision: D62921027 fbshipit-source-id: 4ad169b071accc4123b87aa595842c568c5cd3de
- Loading branch information
1 parent
9dd6e82
commit 8983f83
Showing
4 changed files
with
149 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters