-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix initialize-to-
...
-in-stub behavior
Summary: This commit separates Pyre2's decision about whether to type check the value in an `AnnAssign` versus whether to treat it as initialized. We need this so that we can correctly skip typing `...` assignment in stubs, while also correctly treating it as indicating initialization. This fixes a bug in class-and-instance attribute handling from stubs. Reviewed By: rchen152 Differential Revision: D68279121 fbshipit-source-id: f0a896e86b1bd84c392566bd7e81ca255aa71c87
- Loading branch information
1 parent
ee99cd4
commit eb9be03
Showing
2 changed files
with
24 additions
and
23 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