Skip to content
Open
Show file tree
Hide file tree
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
@@ -1,6 +1,8 @@
from __future__ import annotations

import datetime
import sys
import uuid
from collections.abc import Mapping, Sequence
from typing import Union

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, datetime.datetime, datetime.time, datetime.timedelta, uuid.UUID, Sequence[JSON], Mapping[str, JSON]]",
)
JSONAdapter: TypeAdapter = TypeAdapter(JSON)

Expand Down
12 changes: 6 additions & 6 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.