Skip to content

Commit c263db9

Browse files
committed
Fix 3.9 mypy errors
1 parent c9a7dbe commit c263db9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

prelude_parser/types.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
from __future__ import annotations
1+
# UP035 and UP006 ignored because Python 3.9 doesn't support the upgrade
22

33
from datetime import date, datetime
4+
from typing import Dict, List, Union # noqa: UP035
45

5-
FieldInfo = str | int | float | date | datetime | None
6-
FlatFormInfo = list[dict[str, FieldInfo]]
6+
FieldInfo = Union[str, int, float, date, datetime, None]
7+
FlatFormInfo = List[Dict[str, FieldInfo]] # noqa: UP006

0 commit comments

Comments
 (0)