Stdlib: correct many parameter names (#9815)

This commit is contained in:
Alex Waygood
2023-03-04 09:53:12 +00:00
committed by GitHub
parent 4b755c7034
commit 257e287fec
30 changed files with 382 additions and 353 deletions

View File

@@ -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:

View File

@@ -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: ...

View File

@@ -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: ...