Skip to content

fix(deps): give the fastapi and faststream extras a lower bound - #252

Merged
lesnik512 merged 1 commit into
mainfrom
fix/dependency-floors
Sep 20, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
fix/dependency-floors

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Closes #251.

Both integration extras declared a bare dependency name, so each admitted every release ever published:

fastapi = ["fastapi"]
faststream = ["faststream"]

Resolved at the bottom, each picked a release predating the API the integration uses — 5 collection errors:

AttributeError: module 'fastapi' has no attribute 'FastAPI'
ImportError: cannot import name 'PYDANTIC_V2' from 'fast_depends._compat'

The floors

Bisected against the suite: fastapi>=0.115.3, faststream>=0.3.14.

The faststream floor is older than it might look. It is the genuine minimum the suite passes at, so it is what the range should say — raising it further would be a policy choice about what to support rather than a correctness fix, and is better made deliberately than smuggled into this PR.

Verification

uv pip install --resolution lowest-direct ".[fastapi,faststream]" then the full suite:

interpreter result
3.10 461 passed, 2 skipped
3.14 461 passed, 2 skipped

Lint clean. Normal resolution: 463 passed.

Nothing changes at the top of the range, so this is inert for anyone not installing at the lower bound.

Both extras declared a bare name, so each resolved to a release predating
the API the integration uses. Floors bisected against the suite.

Closes #251
@codecov

codecov Bot commented Sep 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lesnik512
lesnik512 merged commit d7c6138 into main Sep 20, 2026
24 of 25 checks passed
@lesnik512
lesnik512 deleted the fix/dependency-floors branch September 20, 2026 13:59
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.

The fastapi and faststream extras declare no lower bound, so their declared minimums fail at import

1 participant