From a6b07f5f35755c88bed885c81fd829cbd9861c0b Mon Sep 17 00:00:00 2001 From: Mosquito Date: Thu, 26 Oct 2023 21:00:38 +0200 Subject: [PATCH] Revert "Queue.declare() passive parameter not recognized" --- aio_pika/queue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aio_pika/queue.py b/aio_pika/queue.py index a1337a8c..05568ef6 100644 --- a/aio_pika/queue.py +++ b/aio_pika/queue.py @@ -73,7 +73,7 @@ def __repr__(self) -> str: ) async def declare( - self, timeout: TimeoutType = None, passive: Optional[bool] = None + self, timeout: TimeoutType = None, ) -> aiormq.spec.Queue.DeclareOk: """ Declare queue. @@ -89,7 +89,7 @@ async def declare( exclusive=self.exclusive, auto_delete=self.auto_delete, arguments=self.arguments, - passive=passive or self.passive, + passive=self.passive, timeout=timeout, )