Skip to content

Commit

Permalink
Fix type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jul 28, 2018
1 parent 7f97ffe commit e0fa84a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions janus/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ class Queue(Generic[_T]):

def close(self) -> None: ...

@asyncio.coroutine
def wait_closed(self) -> Generator[Any, None, None]: ...
async def wait_closed(self) -> None: ...

@property
def maxsize(self) -> int: ...
Expand Down Expand Up @@ -54,20 +53,17 @@ class _AsyncQueueProxy(Generic[_T]):

def task_done(self) -> None: ...

@asyncio.coroutine
def join(self) -> Generator[Any, None, None]: ...
async def join(self) -> None: ...

def qsize(self) -> int: ...

def empty(self) -> bool: ...

def full(self) -> bool: ...

@asyncio.coroutine
def put(self, item: _T) -> Generator[Any, None, None]: ...
async def put(self, item: _T) -> None: ...

@asyncio.coroutine
def get(self) -> Generator[Any, None, _T]: ...
async def get(self) -> _T: ...


def put_nowait(self, item: _T) -> None: ...
Expand Down

0 comments on commit e0fa84a

Please sign in to comment.