test: annotate the broker helper for faststream 0.7.6 - #232
Merged
Merged
Conversation
lesnik512
force-pushed
the
fix/faststream-076-broker-annotation
branch
from
September 20, 2026 09:42
e431f3b to
9284876
Compare
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.
mainwent red without a commit. faststream 0.7.6 was published at 2026-09-20T09:27:20Z; the lastgreen run on
mainwas 08:42Z.uv.lockis gitignored, so CI resolves dependencies fresh on everyrun and picked the new release up immediately.
BrokerUsecasegained a third type parameter, defaulting toBrokerConfig.RedisBrokerbinds itsown config type, so it is no longer assignable to the two-parameter spelling and
tyreports 15invalid-argument-typediagnostics against the single helper intests/test_faststream_bootstrap.py:Spelling the third parameter as
typing.Anyfixes it. Dropping the parameters entirely does not -the default still resolves to
BrokerConfigand all 15 diagnostics remain.Verified against both versions in a clean worktree, since CI may resolve either:
ty checktests/test_faststream_bootstrap.pyTest-only; no production code and no runtime behaviour changes.
Not done here, worth deciding separately:
uv.lockbeing gitignored is what turns any upstreamrelease into an immediate red
main. Tracking it would make these arrive as a deliberate bumpinstead.