-
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.
Override protobuf Message.__dir__ method
Add a new implementation of Message.__dir__ method that filters out attributes which are not accessible. Such an attribute is currently only `Extensions`, which is only accessible if any extension exists. Add a unit test that verifies all remaining attributes can be accessed. PiperOrigin-RevId: 700778715
- Loading branch information
1 parent
602b62a
commit 9668016
Showing
2 changed files
with
38 additions
and
0 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