Commit 06256af
authored
[ty] Simplify an intersection of
## Summary
Fixes astral-sh/ty#2941
Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
## Test Plan
added an mdtestN & ~T to Never if B & ~T would simplify to Never, where B is the concrete base type of a NewType N (#24086)1 parent f32b9bb commit 06256af
2 files changed
Lines changed: 19 additions & 1 deletion
File tree
- crates/ty_python_semantic
- resources/mdtest/annotations
- src/types/set_theoretic
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
432 | 443 | | |
433 | 444 | | |
434 | 445 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
1519 | | - | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
1520 | 1524 | | |
1521 | 1525 | | |
1522 | 1526 | | |
| |||
1533 | 1537 | | |
1534 | 1538 | | |
1535 | 1539 | | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
1536 | 1543 | | |
1537 | 1544 | | |
1538 | 1545 | | |
| |||
0 commit comments