Commit 2562140
authored
Allow recursive aliases at class scope (#13754)
As `mypy_primer` in #13516 shows,
some people actually use this, and I don't see any good reason to not
allow this. (Note: I tried to enable the same for recursive NamedTuples
and TypedDicts, but this affects how nested classes work in general, so
people will need to use qualified names there).1 parent 9783b46 commit 2562140
2 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5086 | 5086 | | |
5087 | 5087 | | |
5088 | 5088 | | |
5089 | | - | |
| 5089 | + | |
| 5090 | + | |
| 5091 | + | |
5090 | 5092 | | |
5091 | 5093 | | |
5092 | 5094 | | |
| |||
5097 | 5099 | | |
5098 | 5100 | | |
5099 | 5101 | | |
5100 | | - | |
| 5102 | + | |
5101 | 5103 | | |
5102 | 5104 | | |
5103 | 5105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
0 commit comments