]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
🐛 Fix `tuple_` return type annotation (#1639)
authorかける族 <kakeruzoku@gmail.com>
Mon, 2 Mar 2026 20:14:24 +0000 (05:14 +0900)
committerGitHub <noreply@github.com>
Mon, 2 Mar 2026 20:14:24 +0000 (20:14 +0000)
* 🐛 Fix `tuple_` type hinting mistake

* 🐛 Forgetting to remove unnecessary parts of type hints

---------

Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
sqlmodel/sql/expression.py

index 8b1b5ee3fbe68330c87b9b57bb449157e69e83c3..249d6c461a56cf3f2a239306b2ccf4d6bdfc45c4 100644 (file)
@@ -179,8 +179,8 @@ def over(
 def tuple_(
     *clauses: _ColumnExpressionArgument[Any] | Any,
     types: Sequence["_TypeEngineArgument[Any]"] | None = None,
-) -> tuple[Any, ...]:
-    return sqlalchemy.tuple_(*clauses, types=types)  # type: ignore[return-value]
+) -> sqlalchemy.Tuple:
+    return sqlalchemy.tuple_(*clauses, types=types)
 
 
 def type_coerce(