Skip to content

Commit

Permalink
Codestyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed May 10, 2023
1 parent 835438e commit 4df3a3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aio_pika/abc.py
Expand Up @@ -330,12 +330,14 @@ async def get(
fail: Literal[True] = ..., timeout: TimeoutType = ...,
) -> AbstractIncomingMessage:
...

@overload
async def get(
self, *, no_ack: bool = False,
fail: Literal[False] = ..., timeout: TimeoutType = ...,
) -> Optional[AbstractIncomingMessage]:
...

@abstractmethod
async def get(
self, *, no_ack: bool = False,
Expand Down
2 changes: 2 additions & 0 deletions aio_pika/queue.py
Expand Up @@ -269,12 +269,14 @@ async def get(
fail: Literal[True] = ..., timeout: TimeoutType = ...,
) -> IncomingMessage:
...

@overload
async def get(
self, *, no_ack: bool = False,
fail: Literal[False] = ..., timeout: TimeoutType = ...,
) -> Optional[IncomingMessage]:
...
[]
async def get(
self, *, no_ack: bool = False,
fail: bool = True, timeout: TimeoutType = 5,
Expand Down

0 comments on commit 4df3a3e

Please sign in to comment.