Skip to content

Commit

Permalink
fix: AsyncConfluentFastProducer type hints.
Browse files Browse the repository at this point in the history
  • Loading branch information
DABND19 committed Jan 5, 2025
1 parent 802df07 commit 6ecdf73
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions faststream/confluent/publisher/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def disconnect(self) -> None:
def __bool__(self) -> bool:
return bool(self._producer)

async def ping(self, timeout: float) -> None:
async def ping(self, timeout: float) -> bool:
return await self._producer.ping(timeout=timeout)

@override
Expand All @@ -71,7 +71,8 @@ async def publish( # type: ignore[override]
no_confirm=cmd.no_confirm,
)

async def publish_batch(
@override
async def publish_batch( # type: ignore[override]
self,
cmd: "KafkaPublishCommand",
) -> None:
Expand Down Expand Up @@ -106,7 +107,7 @@ async def publish_batch(
)

@override
async def request(
async def request( # type: ignore[override]
self,
cmd: "KafkaPublishCommand",
) -> Any:
Expand Down

0 comments on commit 6ecdf73

Please sign in to comment.