]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
🐛 Fix type annotation in `Field` constructor (#1304)
authorAlan Bogarin <bogarin01alan@gmail.com>
Fri, 28 Feb 2025 14:04:27 +0000 (11:04 -0300)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2025 14:04:27 +0000 (15:04 +0100)
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
sqlmodel/main.py

index 61952be2f1be29de838af0dd2d78016942426ff8..0fa2c111c00bfc389ed9a5ac375b86c8f5c1e13a 100644 (file)
@@ -341,7 +341,7 @@ def Field(
     regex: Optional[str] = None,
     discriminator: Optional[str] = None,
     repr: bool = True,
-    sa_column: Union[Column, UndefinedType] = Undefined,  # type: ignore
+    sa_column: Union[Column[Any], UndefinedType] = Undefined,
     schema_extra: Optional[Dict[str, Any]] = None,
 ) -> Any: ...