diff --git a/sqlmodel/main.py b/sqlmodel/main.py index c551afea36..11bda69f29 100644 --- a/sqlmodel/main.py +++ b/sqlmodel/main.py @@ -243,7 +243,7 @@ def Field( serialization_alias: str | None = None, title: str | None = None, description: str | None = None, - exclude: Set[int | str] | Mapping[int | str, Any] | Any = None, + exclude: bool | Set[int | str] | Mapping[int | str, Any] | Any = None, include: Set[int | str] | Mapping[int | str, Any] | Any = None, const: bool | None = None, gt: float | None = None, @@ -286,7 +286,7 @@ def Field( serialization_alias: str | None = None, title: str | None = None, description: str | None = None, - exclude: Set[int | str] | Mapping[int | str, Any] | Any = None, + exclude: bool | Set[int | str] | Mapping[int | str, Any] | Any = None, include: Set[int | str] | Mapping[int | str, Any] | Any = None, const: bool | None = None, gt: float | None = None, @@ -338,7 +338,7 @@ def Field( serialization_alias: str | None = None, title: str | None = None, description: str | None = None, - exclude: Set[int | str] | Mapping[int | str, Any] | Any = None, + exclude: bool | Set[int | str] | Mapping[int | str, Any] | Any = None, include: Set[int | str] | Mapping[int | str, Any] | Any = None, const: bool | None = None, gt: float | None = None, @@ -371,7 +371,7 @@ def Field( serialization_alias: str | None = None, title: str | None = None, description: str | None = None, - exclude: Set[int | str] | Mapping[int | str, Any] | Any = None, + exclude: bool | Set[int | str] | Mapping[int | str, Any] | Any = None, include: Set[int | str] | Mapping[int | str, Any] | Any = None, const: bool | None = None, gt: float | None = None,