Commit b972d9a
stubtest: check Final variables with literal values against runtime (#20858)
Currently, stubtest does not detect discrepancies when a stub uses Final
= <value> but the runtime has a different value. While it correctly
handles Literal[...] mismatches, it was previously silent on Final
assignments.
This PR extends the variable verification logic in stubtest to ensure
assigned Final values in stubs are compared against the actual runtime
value.
Fixes #20857
---------
Co-authored-by: Brian Schubert <[email protected]>
Co-authored-by: Shantanu <[email protected]>1 parent 837052e commit b972d9a
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1323 | 1323 | | |
1324 | 1324 | | |
1325 | 1325 | | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
1326 | 1334 | | |
1327 | 1335 | | |
1328 | 1336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1171 | 1171 | | |
1172 | 1172 | | |
1173 | 1173 | | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
1174 | 1190 | | |
1175 | 1191 | | |
1176 | 1192 | | |
| |||
0 commit comments