Commit dc42e28
authored
Fix and simplify error de-duplication (#19247)
Fixes #19240
Fixes #13517
Fixes #17791
Existing de-duplication logic is both complicated and fragile. By
specifying a `parent_error` for a note explicitly, we can do everything
in a more robust and simple way. In addition, this new argument makes
error code matching simpler.1 parent c998d21 commit dc42e28
File tree
11 files changed
+233
-229
lines changed- mypy
- test-data/unit
11 files changed
+233
-229
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
7181 | 7181 | | |
7182 | 7182 | | |
7183 | 7183 | | |
7184 | | - | |
| 7184 | + | |
7185 | 7185 | | |
7186 | 7186 | | |
7187 | 7187 | | |
| |||
7192 | 7192 | | |
7193 | 7193 | | |
7194 | 7194 | | |
7195 | | - | |
| 7195 | + | |
7196 | 7196 | | |
7197 | 7197 | | |
7198 | 7198 | | |
| |||
7521 | 7521 | | |
7522 | 7522 | | |
7523 | 7523 | | |
7524 | | - | |
| 7524 | + | |
7525 | 7525 | | |
7526 | 7526 | | |
7527 | | - | |
7528 | | - | |
7529 | | - | |
| 7527 | + | |
| 7528 | + | |
7530 | 7529 | | |
7531 | 7530 | | |
7532 | 7531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2668 | 2668 | | |
2669 | 2669 | | |
2670 | 2670 | | |
2671 | | - | |
| 2671 | + | |
2672 | 2672 | | |
2673 | 2673 | | |
2674 | 2674 | | |
| |||
2679 | 2679 | | |
2680 | 2680 | | |
2681 | 2681 | | |
2682 | | - | |
| 2682 | + | |
2683 | 2683 | | |
2684 | 2684 | | |
2685 | | - | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
2686 | 2688 | | |
2687 | 2689 | | |
2688 | 2690 | | |
| |||
0 commit comments