Skip to content

Commit

Permalink
Merge pull request #595 from mosquito/revert-541-master
Browse files Browse the repository at this point in the history
Revert "Queue.declare() passive parameter not recognized"
  • Loading branch information
mosquito authored Oct 26, 2023
2 parents 7edc052 + a6b07f5 commit 440ca72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aio_pika/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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,
)

Expand Down

0 comments on commit 440ca72

Please sign in to comment.