Commit 5564dc9
Benjamin Moody
_parse_record_line: annotate type of record_fields variable.
This variable is used in a strange way; initially it contains string
values extracted from the record line, then later these string values
are replaced with appropriately-typed values for each field. However,
there's no real way to make this type-safe without changing the API of
the function.
Annotate the variable's type so that mypy will not treat it as a
Dict[str, Optional[str]].1 parent b24e469 commit 5564dc9
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
1014 | 1014 | | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | | - | |
| 1017 | + | |
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
| |||
0 commit comments