Skip to content

Commit b1ae757

Browse files
committed
fix: update return type of col function to Column
1 parent 44e0cbe commit b1ae757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmodel/sql/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def within_group(
209209
return sqlalchemy.within_group(element, *order_by)
210210

211211

212-
def col(column_expression: _T) -> Mapped[_T]:
212+
def col(column_expression: _T) -> Column[_T]:
213213
if not isinstance(column_expression, (ColumnClause, Column, InstrumentedAttribute)):
214214
raise RuntimeError(f"Not a SQLAlchemy column: {column_expression}")
215215
return column_expression # type: ignore

0 commit comments

Comments
 (0)