Skip to content

Commit a08f425

Browse files
jhancepablogsal
authored andcommitted
Resolve a circular import error in obscure configuarations.
Signed-off-by: Jared Hance <[email protected]>
1 parent a9237b4 commit a08f425

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/memray/_metadata.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
from __future__ import annotations
2+
3+
import typing
14
from dataclasses import dataclass
25
from datetime import datetime
36

4-
from ._memray import FileFormat
7+
if typing.TYPE_CHECKING:
8+
from ._memray import FileFormat
59

610

711
@dataclass

0 commit comments

Comments
 (0)