diff --git a/src/postgrest/src/postgrest/types.py b/src/postgrest/src/postgrest/types.py index 748f87e4..8ddb6165 100644 --- a/src/postgrest/src/postgrest/types.py +++ b/src/postgrest/src/postgrest/types.py @@ -2,7 +2,9 @@ import sys from collections.abc import Mapping, Sequence +from datetime import date, datetime, time from typing import Union +from uuid import UUID from httpx import AsyncClient, BasicAuth, Client, Headers, QueryParams from pydantic import TypeAdapter @@ -16,7 +18,8 @@ # https://docs.pydantic.dev/2.11/concepts/types/#named-recursive-types JSON = TypeAliasType( - "JSON", "Union[None, bool, str, int, float, Sequence[JSON], Mapping[str, JSON]]" + "JSON", + "Union[None, bool, str, int, float, datetime, date, time, UUID, Sequence[JSON], Mapping[str, JSON]]", ) JSONAdapter: TypeAdapter = TypeAdapter(JSON)