Commit 6cf0111
committed
Fix mypy: cast dict-key lookups back to TableVersion
max() and list indexing on the version-keyed schema dicts widen the
Literal[1, 2, 3] TableVersion back to int, so mypy flags the results
as incompatible with the declared TableVersion return types.1 parent 338632b commit 6cf0111
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
802 | 803 | | |
803 | 804 | | |
804 | 805 | | |
805 | | - | |
806 | | - | |
| 806 | + | |
| 807 | + | |
807 | 808 | | |
808 | 809 | | |
809 | 810 | | |
| |||
823 | 824 | | |
824 | 825 | | |
825 | 826 | | |
826 | | - | |
| 827 | + | |
827 | 828 | | |
828 | 829 | | |
829 | 830 | | |
| |||
0 commit comments