Skip to content

Commit 4887e32

Browse files
committed
Add future import
1 parent 3432dc8 commit 4887e32

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

gedcom7/cast.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
"""Cast strings values to the appropriate data type."""
22

3+
from __future__ import annotations
4+
35
import re
46
from collections.abc import Callable
57

6-
from . import const, types, grammar
8+
from . import const, grammar, types
79

810

911
def cast_value(text: str, type_id: str) -> types.DataType | None:

gedcom7/types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
"""Classes and data types."""
22

3+
from __future__ import annotations
4+
5+
from dataclasses import dataclass, field
36
from typing import Literal, Union
47

58
from . import const
6-
from dataclasses import dataclass, field
79

810

911
@dataclass

0 commit comments

Comments
 (0)