-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce monkeypatching in pyflakes checker (#372)
Chipping away at #183 Got rid of the monkeypatched `LAMBDA`. What's changed -> - Default argument values cannot be forward references anymore: ```python def bar(x: type = SomeClass) -> None: ... # F821 undefined name 'SomeClass' class SomeClass: ... ``` I think it makes sense to not allow this anyway - it's similar to what we did with classes previously.
- Loading branch information
Showing
3 changed files
with
20 additions
and
11 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