Commit f9d8f3a
authored
Fix self-referential upper bound in new-style type variables (#17407)
Fixes #17347
This copies old-style `TypeVar` logic 1:1 (I know it is ugly, but I
don't think there is anything better now). Also while I am touching this
code, I am removing `third_pass` argument (third pass is not a thing for
~5 years now).1 parent c4470f1 commit f9d8f3a
3 files changed
Lines changed: 19 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
332 | 331 | | |
333 | 332 | | |
334 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1738 | 1738 | | |
1739 | 1739 | | |
1740 | 1740 | | |
1741 | | - | |
| 1741 | + | |
1742 | 1742 | | |
1743 | 1743 | | |
1744 | | - | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
1745 | 1747 | | |
1746 | 1748 | | |
1747 | 1749 | | |
| |||
1752 | 1754 | | |
1753 | 1755 | | |
1754 | 1756 | | |
1755 | | - | |
| 1757 | + | |
1756 | 1758 | | |
1757 | | - | |
| 1759 | + | |
1758 | 1760 | | |
1759 | 1761 | | |
1760 | 1762 | | |
| |||
7192 | 7194 | | |
7193 | 7195 | | |
7194 | 7196 | | |
7195 | | - | |
7196 | 7197 | | |
7197 | 7198 | | |
7198 | 7199 | | |
7199 | 7200 | | |
7200 | 7201 | | |
7201 | 7202 | | |
7202 | 7203 | | |
7203 | | - | |
7204 | | - | |
7205 | 7204 | | |
7206 | 7205 | | |
7207 | 7206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1592 | 1592 | | |
1593 | 1593 | | |
1594 | 1594 | | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
1595 | 1608 | | |
1596 | 1609 | | |
1597 | 1610 | | |
| |||
0 commit comments