]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
Update main.py
authorMaruo <43961566+maru0123-2004@users.noreply.github.com>
Thu, 6 Oct 2022 02:20:53 +0000 (11:20 +0900)
committerGitHub <noreply@github.com>
Thu, 6 Oct 2022 02:20:53 +0000 (11:20 +0900)
sqlmodel/main.py

index 64bad15708c60ae8f6e5804be881bc7886f6f87a..de097968550f2990b7f9a508f6ca8d122b0a27ad 100644 (file)
@@ -148,7 +148,7 @@ def Field(
     unique: bool = False,
     nullable: Union[bool, UndefinedType] = Undefined,
     index: Union[bool, UndefinedType] = Undefined,
-    sa_type: Type[Any],
+    sa_type: Type[Any] = Undefined,
     sa_column: Union[Column, UndefinedType] = Undefined,  # type: ignore
     sa_column_args: Union[Sequence[Any], UndefinedType] = Undefined,
     sa_column_kwargs: Union[Mapping[str, Any], UndefinedType] = Undefined,