mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -23,14 +23,14 @@ class Queue(Generic[_T]):
|
||||
# Despite the fact that `queue` has `deque` type,
|
||||
# we treat it as `Any` to allow different implementations in subtypes.
|
||||
queue: Any # undocumented
|
||||
def __init__(self, maxsize: int = ...) -> None: ...
|
||||
def __init__(self, maxsize: int = 0) -> None: ...
|
||||
def _init(self, maxsize: int) -> None: ...
|
||||
def empty(self) -> bool: ...
|
||||
def full(self) -> bool: ...
|
||||
def get(self, block: bool = ..., timeout: float | None = ...) -> _T: ...
|
||||
def get(self, block: bool = True, timeout: float | None = None) -> _T: ...
|
||||
def get_nowait(self) -> _T: ...
|
||||
def _get(self) -> _T: ...
|
||||
def put(self, item: _T, block: bool = ..., timeout: float | None = ...) -> None: ...
|
||||
def put(self, item: _T, block: bool = True, timeout: float | None = None) -> None: ...
|
||||
def put_nowait(self, item: _T) -> None: ...
|
||||
def _put(self, item: _T) -> None: ...
|
||||
def join(self) -> None: ...
|
||||
@@ -49,9 +49,9 @@ class LifoQueue(Queue[_T]):
|
||||
class SimpleQueue(Generic[_T]):
|
||||
def __init__(self) -> None: ...
|
||||
def empty(self) -> bool: ...
|
||||
def get(self, block: bool = ..., timeout: float | None = ...) -> _T: ...
|
||||
def get(self, block: bool = True, timeout: float | None = None) -> _T: ...
|
||||
def get_nowait(self) -> _T: ...
|
||||
def put(self, item: _T, block: bool = ..., timeout: float | None = ...) -> None: ...
|
||||
def put(self, item: _T, block: bool = True, timeout: float | None = None) -> None: ...
|
||||
def put_nowait(self, item: _T) -> None: ...
|
||||
def qsize(self) -> int: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
|
||||
Reference in New Issue
Block a user