From: Alan Bogarin Date: Fri, 28 Feb 2025 14:04:27 +0000 (-0300) Subject: 🐛 Fix type annotation in `Field` constructor (#1304) X-Git-Tag: 0.0.23~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a51870361b7bc99fa02516867ce4180b314aea3;p=thirdparty%2Ffastapi%2Fsqlmodel.git 🐛 Fix type annotation in `Field` constructor (#1304) Co-authored-by: Sofie Van Landeghem --- diff --git a/sqlmodel/main.py b/sqlmodel/main.py index 61952be2..0fa2c111 100644 --- a/sqlmodel/main.py +++ b/sqlmodel/main.py @@ -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: ...