Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/postgrest/src/postgrest/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down