Commit 15ec5a9
committed
Fix mypy attr-defined in ApplyAnalysisReuseTests
The new test typed the captured-analyses list as list[object], so mypy
rejected the .id access in the reuse assertion ([attr-defined]). Type it
list[Analysis | None] and narrow the reused element with an assert before
reading .id.1 parent e232766 commit 15ec5a9
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
| |||
0 commit comments