File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 3131 TypeVar ,
3232 Union ,
3333)
34+ from typing import Literal as TypingLiteral
35+
36+ from pydantic import Field
3437
3538from pyiceberg .expressions .literals import (
3639 AboveMax ,
3942 literal ,
4043)
4144from pyiceberg .schema import Accessor , Schema
42- from pyiceberg .typedef import L , StructProtocol
45+ from pyiceberg .typedef import IcebergBaseModel , L , StructProtocol
4346from pyiceberg .types import DoubleType , FloatType , NestedField
4447from pyiceberg .utils .singleton import Singleton
45- from pyiceberg .typedef import IcebergBaseModel
46- from pydantic import Field
47- from typing import Literal as TypingLiteral
48+
49+ try :
50+ from pydantic import ConfigDict
51+ except ImportError :
52+ ConfigDict = dict
53+
4854
4955def _to_unbound_term (term : Union [str , UnboundTerm [Any ]]) -> UnboundTerm [Any ]:
5056 return Reference (term ) if isinstance (term , str ) else term
You can’t perform that action at this time.
0 commit comments