Skip to content

Commit c72fd65

Browse files
committed
fix: Ensure Function is imported at runtime for type alias
1 parent 60fc389 commit c72fd65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/sqlalchemy/sql/compiler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
from .base import _SentinelDefaultCharacterization
8383
from .base import NO_ARG
8484
from .elements import quoted_name
85+
from .functions import Function
8586
from .sqltypes import TupleType
8687
from .visitors import prefix_anon_map
8788
from .. import exc
@@ -118,7 +119,7 @@
118119
from .elements import Null
119120
from .elements import SavepointClause
120121
from .elements import True_
121-
from .functions import Function
122+
from .elements import UnaryExpression
122123
from .schema import Column
123124
from .schema import Constraint
124125
from .schema import ForeignKeyConstraint

0 commit comments

Comments
 (0)