Commit c97cf55
committed
Use explicit literal assignment for status
mypy doesn't narrow `letter` through the OR equality chain to
`Literal["M", "A", "D"]`. Branch and assign each literal directly so no
narrowing is required.1 parent 31a2249 commit c97cf55
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
517 | | - | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
518 | 522 | | |
519 | 523 | | |
520 | 524 | | |
| |||
0 commit comments