Commit 1ba23f1
authored
Traverse module ancestors when traversing reachable graph nodes during dmypy update (#18906)
Fixes #18396. Fixes #17652. Hopefully fixes #15486 (but not enough info
to reproduce the original problem).
See discussion in #18396. This PR forces collecting all ancestors of all
modules during dep graph traversal in incremental update.
Ancestors are included in `load_graph`, which means not traversing them
during update results in some modules being erroneously treated as
deleted:
https://github.com/python/mypy/blob/a4e79ea19506948fd43bf5c14bbf8e2a0ad7158a/mypy/build.py#L3141-L31461 parent 54975a0 commit 1ba23f1
2 files changed
+29
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
623 | 626 | | |
624 | 627 | | |
625 | 628 | | |
| |||
736 | 739 | | |
737 | 740 | | |
738 | 741 | | |
739 | | - | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
740 | 745 | | |
741 | 746 | | |
742 | 747 | | |
| |||
756 | 761 | | |
757 | 762 | | |
758 | 763 | | |
759 | | - | |
| 764 | + | |
| 765 | + | |
760 | 766 | | |
761 | 767 | | |
762 | 768 | | |
| |||
775 | 781 | | |
776 | 782 | | |
777 | 783 | | |
778 | | - | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
779 | 787 | | |
780 | 788 | | |
781 | 789 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
0 commit comments