fix: dependency version constraints - #304
Merged
Merged
Conversation
betinacosta
marked this pull request as ready for review
September 3, 2026 20:49
Contributor
|
Could use the compatible release operator |
NicoleMGomes
approved these changes
Sep 4, 2026
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.
Description
Adds explicit upper-bound version constraints to all runtime and optional dependencies in
pyproject.toml, and fixes a type-checker error in the data anonymization HTTP transport layer.Dependency constraints: Every unbounded
>=specifier has been tightened to a>=X,<Yrange to prevent silent breakage when a dependency releases a new major (or incompatible minor) version. This improves reproducibility and makes dependency conflicts easier to diagnose.Notable constraint decisions:
protobuf: minimum raised from>=5.29.5to>=6.0.0,<7(aligns with the protobuf v6 API)minio: pinned to>=7.2.16,<7.2.17(patch-exact, matching previous~=7.2.16intent)cryptography:>=46.0.3,<47mcp,grpcio,opentelemetry-api/sdk,PyJWT,httpx,protovalidate,opentelemetry-instrumentation-langchain: all capped at their next major versionstarlette,fastapi,aiohttp,sqlalchemy,django,flask,langgraph,a2a-sdk): capped at their respective next major versionsType fix: In
_http_transport.py,_post_file_requestnow explicitly typesfile_valueasBinaryIO | bytesand assertsrequest.file_content is not Nonein theelsebranch. This satisfies thetytype checker, which previously rejected theNone-inclusive union as incompatible withrequests.Session.post'sfilesparameter. The assertion is always true at runtime — the model validates that exactly one offile_pathorfile_contentis provided.Related Issue
Closes #
Type of Change
How to Test
uv syncuv run pytestuvx pre-commit run --all-filesty type checkChecklist
Additional Notes
The
uv.lockfile was regenerated after the constraint changes. Theprotobufminimum version bump from5.xto6.xis the only change that could affect consumers who were pinned to protobuf 5 — however, since the SDK already requires protobuf 6 APIs at runtime, this was already an implicit requirement.