forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove yielding @rules (pantsbuild#8652)
### Problem We believe the new `async`/`await` syntax for coroutine `@rule`s is superior to `yield`ing generators, in part because it allows mypy to successfully be run on files defining `@rule`s. ### Solution - Convert `yield`ing `@rule`s into `async` methods, and use `await Get(...)` and `await MultiGet(...)` instead of `yield Get(...)` and `yield [Get(...) ...]`. - Remove the `asttokens` 3rdparty library and a *ridiculous* amount of code in `rules.py`!!!
- Loading branch information
1 parent
ecaf644
commit fbe99a1
Showing
37 changed files
with
249 additions
and
508 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
ansicolors==1.0.2 | ||
asttokens==1.1.13 | ||
beautifulsoup4>=4.6.0,<4.7 | ||
cffi==1.13.2 | ||
contextlib2==0.5.5 | ||
|
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
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
Oops, something went wrong.