-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a python bug for text_format pretty print when Struct in Any
Struct has a default bool function, and empty Struct returns False for bool(). Should compare with None instead of bool() when check if Struct is able to be created. PiperOrigin-RevId: 698205106
- Loading branch information
1 parent
0e6a310
commit d3e9897
Showing
2 changed files
with
27 additions
and
1 deletion.
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