-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return generator annotation when it exists
Summary: If a function already has a return annotation that's a generator, we return it. The next step to consider is: what if we have a generator annotation that is different than the one we inferred? this is a todo. For now, we return the annotation directly without considering the type we inferred. Other todos include - send type - next keyword - async generators Reviewed By: ndmitchell Differential Revision: D67732875 fbshipit-source-id: c3f0df46acb3cdcdbee1a58f159e71d385450a6d
- Loading branch information
1 parent
4f99a65
commit 30940b4
Showing
3 changed files
with
25 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
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