Commit 0964d9e
authored
Fix crash with type alias inside __init__ in incremental mode (#10432)
Don't create `TypeAliasType` for aliases defined within functions,
since the target can't be looked up using the full name, as we drop
function symbol tables after we've finished processing them.
Fixes #7281.1 parent 389a172 commit 0964d9e
4 files changed
Lines changed: 50 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2796 | 2796 | | |
2797 | 2797 | | |
2798 | 2798 | | |
| 2799 | + | |
| 2800 | + | |
2799 | 2801 | | |
2800 | 2802 | | |
2801 | | - | |
| 2803 | + | |
2802 | 2804 | | |
2803 | 2805 | | |
2804 | 2806 | | |
2805 | 2807 | | |
2806 | 2808 | | |
2807 | | - | |
| 2809 | + | |
| 2810 | + | |
2808 | 2811 | | |
2809 | 2812 | | |
2810 | 2813 | | |
| |||
2815 | 2818 | | |
2816 | 2819 | | |
2817 | 2820 | | |
| 2821 | + | |
2818 | 2822 | | |
2819 | 2823 | | |
2820 | 2824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2593 | 2593 | | |
2594 | 2594 | | |
2595 | 2595 | | |
2596 | | - | |
| 2596 | + | |
2597 | 2597 | | |
2598 | | - | |
2599 | | - | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
2600 | 2609 | | |
2601 | 2610 | | |
2602 | 2611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5532 | 5532 | | |
5533 | 5533 | | |
5534 | 5534 | | |
| 5535 | + | |
| 5536 | + | |
| 5537 | + | |
| 5538 | + | |
| 5539 | + | |
| 5540 | + | |
| 5541 | + | |
| 5542 | + | |
| 5543 | + | |
| 5544 | + | |
| 5545 | + | |
| 5546 | + | |
| 5547 | + | |
| 5548 | + | |
| 5549 | + | |
| 5550 | + | |
| 5551 | + | |
| 5552 | + | |
| 5553 | + | |
| 5554 | + | |
| 5555 | + | |
| 5556 | + | |
| 5557 | + | |
| 5558 | + | |
| 5559 | + | |
| 5560 | + | |
| 5561 | + | |
| 5562 | + | |
| 5563 | + | |
0 commit comments