Skip to content

Commit f922d17

Browse files
committed
Apply Ruff formatting fixes
1 parent 3146904 commit f922d17

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

pyiceberg/expressions/__init__.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
TypeVar,
3232
Union,
3333
)
34+
from typing import Literal as TypingLiteral
35+
36+
from pydantic import Field
3437

3538
from pyiceberg.expressions.literals import (
3639
AboveMax,
@@ -39,12 +42,15 @@
3942
literal,
4043
)
4144
from pyiceberg.schema import Accessor, Schema
42-
from pyiceberg.typedef import L, StructProtocol
45+
from pyiceberg.typedef import IcebergBaseModel, L, StructProtocol
4346
from pyiceberg.types import DoubleType, FloatType, NestedField
4447
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+
4854

4955
def _to_unbound_term(term: Union[str, UnboundTerm[Any]]) -> UnboundTerm[Any]:
5056
return Reference(term) if isinstance(term, str) else term

0 commit comments

Comments
 (0)