diff --git a/src/postgrest/src/postgrest/types.py b/src/postgrest/src/postgrest/types.py index 748f87e4..a8e78840 100644 --- a/src/postgrest/src/postgrest/types.py +++ b/src/postgrest/src/postgrest/types.py @@ -1,6 +1,8 @@ from __future__ import annotations +import datetime import sys +import uuid from collections.abc import Mapping, Sequence from typing import Union @@ -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, datetime.datetime, datetime.time, datetime.timedelta, uuid.UUID, Sequence[JSON], Mapping[str, JSON]]", ) JSONAdapter: TypeAdapter = TypeAdapter(JSON) diff --git a/uv.lock b/uv.lock index ac83b70a..1946de79 100644 --- a/uv.lock +++ b/uv.lock @@ -2028,7 +2028,7 @@ wheels = [ [[package]] name = "postgrest" -version = "2.28.3" +version = "2.30.0" source = { editable = "src/postgrest" } dependencies = [ { name = "deprecation" }, @@ -2781,7 +2781,7 @@ wheels = [ [[package]] name = "realtime" -version = "2.28.3" +version = "2.30.0" source = { editable = "src/realtime" } dependencies = [ { name = "pydantic" }, @@ -3427,7 +3427,7 @@ wheels = [ [[package]] name = "storage3" -version = "2.28.3" +version = "2.30.0" source = { editable = "src/storage" } dependencies = [ { name = "deprecation" }, @@ -3545,7 +3545,7 @@ wheels = [ [[package]] name = "supabase" -version = "2.28.3" +version = "2.30.0" source = { editable = "src/supabase" } dependencies = [ { name = "httpx" }, @@ -3614,7 +3614,7 @@ tests = [ [[package]] name = "supabase-auth" -version = "2.28.3" +version = "2.30.0" source = { editable = "src/auth" } dependencies = [ { name = "httpx", extra = ["http2"] }, @@ -3701,7 +3701,7 @@ tests = [ [[package]] name = "supabase-functions" -version = "2.28.3" +version = "2.30.0" source = { editable = "src/functions" } dependencies = [ { name = "httpx", extra = ["http2"] },