Skip to content

Commit 5c8ec39

Browse files
jhancepablogsal
authored andcommitted
Resolve a circular import error in obscure configuarations.
Signed-off-by: Jared Hance <jaredhance@gmail.com>
1 parent a9237b4 commit 5c8ec39

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/memray/_metadata.py

+5-1
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)