Skip to content

Commit

Permalink
refactor: little type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Nov 5, 2024
1 parent f54e5ee commit 2a4c51d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions faststream/_internal/fastapi/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ async def start_broker_lifespan(
else:
warnings.warn(
"Specifying 'lifespan_context' manually is no longer necessary with FastAPI >= 0.112.2.",
category=RuntimeWarning,
stacklevel=2,
)

Expand Down
2 changes: 1 addition & 1 deletion faststream/confluent/broker/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ async def publish( # type: ignore[override]
correlation_id=correlation_id or gen_cor_id(),
_publish_type=PublishType.Publish,
)
return await super()._basic_publish(cmd, producer=self._producer)
await super()._basic_publish(cmd, producer=self._producer)

@override
async def request( # type: ignore[override]
Expand Down
2 changes: 1 addition & 1 deletion faststream/kafka/broker/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ async def publish( # type: ignore[override]
correlation_id=correlation_id or gen_cor_id(),
_publish_type=PublishType.Publish,
)
return await super()._basic_publish(cmd, producer=self._producer)
await super()._basic_publish(cmd, producer=self._producer)

@override
async def request( # type: ignore[override]
Expand Down

0 comments on commit 2a4c51d

Please sign in to comment.