8000 Tweak constraint inference against unions to exclude more unsatisfiable items by ilevkivskyi · Pull Request #7922 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Tweak constraint inference against unions to exclude more unsatisfiable items #7922

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 4 commits into from
Nov 11, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo in test
  • Loading branch information
ilevkivskyi committed Nov 11, 2019
commit 2000e09553d467eb46c574e1579153b57b73ee9f
4 changes: 2 additions & 2 deletions test-data/unit/check-inference.test
65CE
Original file line number Diff line number Diff line change
Expand Up @@ -2787,8 +2787,8 @@ def q2(x: Union[Z[F], F]) -> F:
return x

b: B
reveal_type(q1(z)) # N: Revealed type is '__main__.B*'
reveal_type(q2(z)) # N: Revealed type is '__main__.B*'
reveal_type(q1(b)) # N: Revealed type is '__main__.B*'
reveal_type(q2(b)) # N: Revealed type is '__main__.B*'

z: Z[B]
reveal_type(q1(z)) # N: Revealed type is '__main__.B*'
Expand Down
0