From 18faeb6ff9593246475f1c661a6a944f7d1633ae Mon Sep 17 00:00:00 2001 From: Sean Kazazes Date: Wed, 22 Sep 2021 09:50:28 -0400 Subject: [PATCH 1/3] Added doctring parameters for aio_pika.Exchange.publish --- aio_pika/exchange.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aio_pika/exchange.py b/aio_pika/exchange.py index 8980c7b5..956a64c8 100644 --- a/aio_pika/exchange.py +++ b/aio_pika/exchange.py @@ -215,6 +215,12 @@ async def publish( .. _publisher confirms: https://www.rabbitmq.com/confirms.html + :param message: :class:`aio_pika.message.Message` instance + :param routing_key: routing key + :param mandatory: Indicate mandatory routing in the underlying pamqp `spec.Basic.publish() `_ call + :param immediate: Request immediate delivery + :param timeout: Asyncio timeout + :return: :class:`None` """ log.debug( From f7ca6c5e4979f826bc462595a2f44baf91a8fba5 Mon Sep 17 00:00:00 2001 From: Sean Kazazes Date: Wed, 22 Sep 2021 09:59:03 -0400 Subject: [PATCH 2/3] changed return type docstring to bool or None --- aio_pika/exchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio_pika/exchange.py b/aio_pika/exchange.py index 956a64c8..fd8bf663 100644 --- a/aio_pika/exchange.py +++ b/aio_pika/exchange.py @@ -220,7 +220,7 @@ async def publish( :param mandatory: Indicate mandatory routing in the underlying pamqp `spec.Basic.publish() `_ call :param immediate: Request immediate delivery :param timeout: Asyncio timeout - :return: :class:`None` + :return: :class:`bool` or :class:`None` """ log.debug( From 26ae6963a75113f152b6cfb1460a912b3b52f8d7 Mon Sep 17 00:00:00 2001 From: Sean Kazazes Date: Wed, 22 Sep 2021 11:18:34 -0400 Subject: [PATCH 3/3] Fixed linelength issues --- aio_pika/exchange.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aio_pika/exchange.py b/aio_pika/exchange.py index fd8bf663..7b5b89f3 100644 --- a/aio_pika/exchange.py +++ b/aio_pika/exchange.py @@ -217,7 +217,9 @@ async def publish( :param message: :class:`aio_pika.message.Message` instance :param routing_key: routing key - :param mandatory: Indicate mandatory routing in the underlying pamqp `spec.Basic.publish() `_ call + :param mandatory: Indicate mandatory routing in the underlying pamqp + `spec.Basic.publish() `_ call :param immediate: Request immediate delivery :param timeout: Asyncio timeout :return: :class:`bool` or :class:`None`