Skip to content

chore(storage): remove unused JSONAdapter and cap pydantic below 3 - #1903

Merged
spydon merged 2 commits into
mainfrom
lukasklingsbo/storage-remove-unused-json-adapter
Nov 2, 2026
Merged

spydon merged 2 commits into
mainfrom
lukasklingsbo/storage-remove-unused-json-adapter

Conversation

@spydon

@spydon spydon commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

What

Two small storage3 cleanups following #1902.

Remove unused JSONAdapter

Removes JSONAdapter from storage3/types.py. It is a TypeAdapter over the JSON alias that nothing in the repository uses, and it is not exported from storage3. This is the storage counterpart of the postgrest JSONAdapter removal in #1902.

TypeAdapter is still imported because SignedUrlsJsonResponse and AnalyticsBucketsParser use it. The JSON alias itself is unchanged.

Cap pydantic below 3

storage3 required pydantic >=2.11.7 with no upper bound, while auth, postgrest and realtime all require >=2.11.7,<3. This aligns storage3 with them, so a standalone storage3 install cannot pick up a future pydantic 3.

uv.lock only changes in the storage3 requires-dist specifier; resolved versions are unchanged.

Testing

  • make ruff passes.
  • mypy passes for storage3 (src/storage3 and tests).
  • tests/test_vector_metadata.py, tests/_async/test_bucket.py and tests/_sync/test_bucket.py pass. Integration suites are left to CI.

@spydon
spydon requested a review from o-santi as a code owner November 2, 2026 15:33
@spydon spydon changed the title chore(storage): remove unused JSONAdapter chore(storage): remove unused JSONAdapter and cap pydantic below 3 Nov 2, 2026
@spydon
spydon merged commit 73255d2 into main Nov 2, 2026
43 checks passed
@spydon
spydon deleted the lukasklingsbo/storage-remove-unused-json-adapter branch November 2, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant