8000 Generalize reachability checks to support enums by Michael0x2a · Pull Request #7000 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Generalize reachability checks to support enums #7000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 8, 2019
Prev Previous commit
Next Next commit
Merge branch 'master' into refine-enum-branch-analysis
  • Loading branch information
Michael0x2a committed Jul 6, 2019
commit 5ec686898053b9f9932e416ecc29dda8c409a79a
2 changes: 1 addition & 1 deletion test-data/unit/check-enum.test
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ class SomeEnum(Enum):
[out]
main:2: note: Revealed type is 'builtins.int'
[out2]
main:2: error: Revealed type is 'builtins.str'
main:2: note: Revealed type is 'builtins.str'

[case testEnumReachabilityChecksBasic]
from enum import Enum
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0