Skip to content

Commit 6c90390

Browse files
committed
Break circular import
1 parent 3cdd9dd commit 6c90390

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyiceberg/typedef.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
from pydantic import BaseModel, ConfigDict, RootModel
3737
from typing_extensions import Self
3838

39-
from pyiceberg.expressions.literals import Literal as IcebergLiteral
40-
4139
if TYPE_CHECKING:
40+
from pyiceberg.expressions.literals import Literal as IcebergLiteral
4241
from pyiceberg.types import StructType
4342

4443
LiteralValue = IcebergLiteral[Any]
4544
else:
46-
LiteralValue = IcebergLiteral
45+
# Use Any for runtime to avoid circular import - type checkers will use TYPE_CHECKING version
46+
LiteralValue = Any # type: ignore[assignment,misc]
4747

4848

4949
class FrozenDict(dict[Any, Any]):

0 commit comments

Comments
 (0)