-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent users from shadowing
builtins.pyi
in ptt
Summary: When using buck-based per-target type checking, we realised that it is possible for users, by setting `base_module = ''` and having an `__init__.py`, to shadow `builtins.py`. This is pretty confusing because there's no user-visible indication that this is happening, and we just get tons of type errors on all the builtin types being undefined. Reviewed By: grievejia Differential Revision: D65076559 fbshipit-source-id: d1ea05c3d0b5c6a8b2e114ba42fb7b81e2f1f1a8
- Loading branch information
1 parent
4800c02
commit f9b8277
Showing
2 changed files
with
12 additions
and
4 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