Skip to content

Commit

Permalink
fix: super() err
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Apr 22, 2024
1 parent 545a505 commit 7945284
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions a_sync/primitives/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class _Queue(asyncio.Queue[T]):
class Queue(_Queue[T]):
# for type hint support, no functional difference
async def get(self) -> T:
return await super().get()
return await _Queue.get(self)
def get_nowait(self) -> T:
return super().get_nowait()
return _Queue.get_nowait(self)
async def put(self, item: T) -> None:
return super().put(item)
return _Queue.put(self, item)
def put_nowait(self, item: T) -> None:
return super().put_nowait(item)
return _Queue.put_nowait(self, item)

async def get_all(self) -> List[T]:
"""returns 1 or more items"""
Expand Down

0 comments on commit 7945284

Please sign in to comment.