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 31
31
TypeVar ,
32
32
Union ,
33
33
)
34
+ from typing import Literal as TypingLiteral
35
+
36
+ from pydantic import Field
34
37
35
38
from pyiceberg .expressions .literals import (
36
39
AboveMax ,
39
42
literal ,
40
43
)
41
44
from pyiceberg .schema import Accessor , Schema
42
- from pyiceberg .typedef import L , StructProtocol
45
+ from pyiceberg .typedef import IcebergBaseModel , L , StructProtocol
43
46
from pyiceberg .types import DoubleType , FloatType , NestedField
44
47
from 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
+
48
54
49
55
def _to_unbound_term (term : Union [str , UnboundTerm [Any ]]) -> UnboundTerm [Any ]:
50
56
return Reference (term ) if isinstance (term , str ) else term
You can’t perform that action at this time.
0 commit comments