add (overwrite with) mypy stubs, if available

This commit is contained in:
Matthias Kramm
2015-09-30 07:36:12 -07:00
parent 69e10b3aed
commit 337abed05a
432 changed files with 22360 additions and 776 deletions

20
stdlib/3/queue.pyi Normal file
View File

@@ -0,0 +1,20 @@
# Stubs for queue
# NOTE: These are incomplete!
from typing import Any, TypeVar, Generic
_T = TypeVar('_T')
class Queue(Generic[_T]):
def __init__(self, maxsize: int = 0) -> None: ...
def full(self) -> bool: ...
def get(self, block: bool = True, timeout: float = None) -> _T: ...
def get_nowait(self) -> _T: ...
def put(self, item: _T, block: bool = True, timeout: float = None) -> None: ...
def put_nowait(self, item: _T) -> None: ...
def join(self) -> None: ...
def qsize(self) -> int: ...
def task_done(self) -> None: pass
class Empty: ...