From d44da7516ef72d9ce9e0e214facabe13b901681e Mon Sep 17 00:00:00 2001 From: Pastukhov Nikita Date: Mon, 16 Sep 2024 19:26:44 +0300 Subject: [PATCH] fix (#1792): make RMQ publisher.publish reply_to optional (#1795) * fix (#1792): make RMQ publisher.publish reply_to optional * lint: fix mypy --- faststream/rabbit/publisher/usecase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faststream/rabbit/publisher/usecase.py b/faststream/rabbit/publisher/usecase.py index c3306c78d2..f03b3b4a72 100644 --- a/faststream/rabbit/publisher/usecase.py +++ b/faststream/rabbit/publisher/usecase.py @@ -97,7 +97,7 @@ class RequestPublishKwargs(TypedDict, total=False): ] -class PublishKwargs(RequestPublishKwargs): +class PublishKwargs(RequestPublishKwargs, total=False): """Typed dict to annotate RabbitMQ publishers.""" reply_to: Annotated[ @@ -181,7 +181,7 @@ def __hash__(self) -> int: ) @override - async def publish( # type: ignore[override] + async def publish( self, message: "AioPikaSendableMessage", queue: Annotated[