Commit a108c67
authored
Add get_expression_type to CheckerPluginInterface (#15369)
Fixes #14845.
p.s. In the issue above, I was concerned that adding this method would
create an avenue for infinite recursions (if called carelessly), but in
fact I haven't managed to induce it, e.g. FunctionSigContext has `args`
but not the call expression itself.1 parent e7b917e commit a108c67
File tree
5 files changed
+25
-28
lines changed- mypy
- plugins
- test-data/unit
- plugins
5 files changed
+25
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6793 | 6793 | | |
6794 | 6794 | | |
6795 | 6795 | | |
| 6796 | + | |
| 6797 | + | |
| 6798 | + | |
6796 | 6799 | | |
6797 | 6800 | | |
6798 | 6801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
253 | 258 | | |
254 | 259 | | |
255 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
1048 | 1047 | | |
1049 | 1048 | | |
1050 | 1049 | | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
| 1050 | + | |
1058 | 1051 | | |
1059 | 1052 | | |
1060 | 1053 | | |
| |||
1074 | 1067 | | |
1075 | 1068 | | |
1076 | 1069 | | |
1077 | | - | |
| 1070 | + | |
1078 | 1071 | | |
1079 | 1072 | | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
| 1073 | + | |
1085 | 1074 | | |
1086 | 1075 | | |
1087 | 1076 | | |
| |||
1098 | 1087 | | |
1099 | 1088 | | |
1100 | 1089 | | |
1101 | | - | |
| 1090 | + | |
1102 | 1091 | | |
1103 | 1092 | | |
1104 | 1093 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
890 | | - | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
891 | 894 | | |
892 | 895 | | |
893 | 896 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 10 | | |
19 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
20 | 16 | | |
21 | | - | |
22 | | - | |
| 17 | + | |
| 18 | + | |
23 | 19 | | |
24 | 20 | | |
| 21 | + | |
25 | 22 | | |
26 | 23 | | |
0 commit comments