Repository navigation
chore(storage): remove unused JSONAdapter and cap pydantic below 3 - #1903
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two small storage3 cleanups following #1902.
Remove unused
JSONAdapterRemoves
JSONAdapterfromstorage3/types.py. It is aTypeAdapterover theJSONalias that nothing in the repository uses, and it is not exported fromstorage3. This is the storage counterpart of the postgrestJSONAdapterremoval in #1902.TypeAdapteris still imported becauseSignedUrlsJsonResponseandAnalyticsBucketsParseruse it. TheJSONalias itself is unchanged.Cap pydantic below 3
storage3 required
pydantic >=2.11.7with 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.lockonly changes in the storage3requires-distspecifier; resolved versions are unchanged.Testing
make ruffpasses.src/storage3andtests).tests/test_vector_metadata.py,tests/_async/test_bucket.pyandtests/_sync/test_bucket.pypass. Integration suites are left to CI.