Commit 4847ec8
authored
Fix forward references in type parameters of overparameterized PEP 695 type aliases (#19725)
Fixes #19734
Make semanal defer for placeholders in the upper bounds / constraints,
even when the type variable doesn't appear in the target.
https://discuss.python.org/t/mypy-raises-exception-for-certain-type-alias-definitions-with-parameters-bounded-by-a-not-yet-defined-type/1033051 parent c32b0a5 commit 4847ec8
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5598 | 5598 | | |
5599 | 5599 | | |
5600 | 5600 | | |
5601 | | - | |
| 5601 | + | |
| 5602 | + | |
5602 | 5603 | | |
5603 | 5604 | | |
5604 | 5605 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2112 | 2112 | | |
2113 | 2113 | | |
2114 | 2114 | | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
0 commit comments