-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use __getattr__ instead of __getattribute__ in type stub
Pyre apparently doesn't support __getattribute__, but it does support __getattr__. Update the type stub to work around this limitation. The actual implementation in the C extension uses tp_getattro, which is essentially __getattribute__, but it tries the equivalent of object.__getattribute__ first, so it's closer to __getattr__ in spirit. Signed-off-by: Omar Sandoval <osandov@osandov.com>
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 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