Commit e7f4619
authored
Fix crash on circular star import in incremental mode (#20511)
This allows to re-enable two more tests in parallel mode.
The fix is kind of simple, replace any remaining placeholders with a
`Var` on final iteration (similar to what we do for regular `from ...
import x`). This has one unfortunate consequence: now each error is only
reported once (which is good), _but_ it will be always reported in a
module with a star import (because of how SCCs are ordered). I don't see
any simple way to fix this, but IMO an error in a somewhat confusing
place is better than a crash.1 parent 30260ca commit e7f4619
File tree
3 files changed
+25
-5
lines changed- mypy
- test-data/unit
3 files changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3224 | 3224 | | |
3225 | 3225 | | |
3226 | 3226 | | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
3227 | 3233 | | |
3228 | 3234 | | |
3229 | 3235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7683 | 7683 | | |
7684 | 7684 | | |
7685 | 7685 | | |
| 7686 | + | |
| 7687 | + | |
| 7688 | + | |
| 7689 | + | |
| 7690 | + | |
| 7691 | + | |
| 7692 | + | |
| 7693 | + | |
| 7694 | + | |
| 7695 | + | |
| 7696 | + | |
| 7697 | + | |
| 7698 | + | |
| 7699 | + | |
| 7700 | + | |
| 7701 | + | |
| 7702 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3184 | 3184 | | |
3185 | 3185 | | |
3186 | 3186 | | |
3187 | | - | |
| 3187 | + | |
3188 | 3188 | | |
3189 | 3189 | | |
3190 | 3190 | | |
3191 | 3191 | | |
3192 | 3192 | | |
3193 | 3193 | | |
3194 | 3194 | | |
3195 | | - | |
3196 | 3195 | | |
3197 | | - | |
| 3196 | + | |
3198 | 3197 | | |
3199 | 3198 | | |
3200 | 3199 | | |
| |||
3204 | 3203 | | |
3205 | 3204 | | |
3206 | 3205 | | |
3207 | | - | |
3208 | | - | |
3209 | 3206 | | |
3210 | 3207 | | |
3211 | 3208 | | |
| |||
0 commit comments