mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Stdlib: correct many parameter names (#9815)
This commit is contained in:
@@ -116,8 +116,8 @@ class BaseListProxy(BaseProxy, MutableSequence[_T]):
|
||||
def sort(self, *, key: Callable[[_T], SupportsRichComparison], reverse: bool = ...) -> None: ...
|
||||
|
||||
class ListProxy(BaseListProxy[_T]):
|
||||
def __iadd__(self, __x: Iterable[_T]) -> Self: ... # type: ignore[override]
|
||||
def __imul__(self, __n: SupportsIndex) -> Self: ... # type: ignore[override]
|
||||
def __iadd__(self, __value: Iterable[_T]) -> Self: ... # type: ignore[override]
|
||||
def __imul__(self, __value: SupportsIndex) -> Self: ... # type: ignore[override]
|
||||
|
||||
# Returned by BaseManager.get_server()
|
||||
class Server:
|
||||
|
||||
@@ -15,7 +15,7 @@ class Queue(queue.Queue[_T]):
|
||||
def __init__(self, maxsize: int = 0, *, ctx: Any = ...) -> None: ...
|
||||
def get(self, block: bool = True, timeout: float | None = None) -> _T: ...
|
||||
def put(self, obj: _T, block: bool = True, timeout: float | None = None) -> None: ...
|
||||
def put_nowait(self, item: _T) -> None: ...
|
||||
def put_nowait(self, obj: _T) -> None: ...
|
||||
def get_nowait(self) -> _T: ...
|
||||
def close(self) -> None: ...
|
||||
def join_thread(self) -> None: ...
|
||||
@@ -30,6 +30,6 @@ class SimpleQueue(Generic[_T]):
|
||||
|
||||
def empty(self) -> bool: ...
|
||||
def get(self) -> _T: ...
|
||||
def put(self, item: _T) -> None: ...
|
||||
def put(self, obj: _T) -> None: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
||||
|
||||
@@ -30,7 +30,7 @@ class Condition(AbstractContextManager[bool]):
|
||||
) -> None: ...
|
||||
|
||||
class Event:
|
||||
def __init__(self, lock: _LockLike | None = ..., *, ctx: BaseContext) -> None: ...
|
||||
def __init__(self, *, ctx: BaseContext) -> None: ...
|
||||
def is_set(self) -> bool: ...
|
||||
def set(self) -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user