forked from python/mypy
-
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.
Narrow types for walrus in identity comparison
In theory, this draft commit fixes python#8236 However, it looks like the ComparisonExpr part of find_isinstance_check_helper was rewritten today morning in python#8151. It looks like it's not super easy to merge: `is_valid_target` gets in the way and I'm a lot less sure about the change. I'm also not fully sure about the implications of making AssignmentExpr into mypy.literals, but seems like it's what we'd want. I also don't really like the way I've branched for AssignmentExpr, it's pretty unsatisfactory. Well, work in progress!
- Loading branch information
hauntsaninja
committed
Jan 9, 2020
1 parent
9908e8e
commit b844526
Showing
3 changed files
with
13 additions
and
3 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