stdlib: add argument default values (#9501)

This commit is contained in:
Jelle Zijlstra
2023-01-18 00:37:34 -08:00
committed by GitHub
parent 6cb934291f
commit ddfaca3200
272 changed files with 2529 additions and 2467 deletions

View File

@@ -47,9 +47,9 @@ class DummyProcess(threading.Thread):
def exitcode(self) -> Literal[0] | None: ...
def __init__(
self,
group: Any = ...,
target: Callable[..., object] | None = ...,
name: str | None = ...,
group: Any = None,
target: Callable[..., object] | None = None,
name: str | None = None,
args: Iterable[Any] = ...,
kwargs: Mapping[str, Any] = ...,
) -> None: ...
@@ -65,11 +65,13 @@ class Value:
_typecode: Any
_value: Any
value: Any
def __init__(self, typecode: Any, value: Any, lock: Any = ...) -> None: ...
def __init__(self, typecode: Any, value: Any, lock: Any = True) -> None: ...
def Array(typecode: Any, sequence: Sequence[Any], lock: Any = ...) -> array.array[Any]: ...
def Array(typecode: Any, sequence: Sequence[Any], lock: Any = True) -> array.array[Any]: ...
def Manager() -> Any: ...
def Pool(processes: int | None = ..., initializer: Callable[..., object] | None = ..., initargs: Iterable[Any] = ...) -> Any: ...
def Pool(
processes: int | None = None, initializer: Callable[..., object] | None = None, initargs: Iterable[Any] = ...
) -> Any: ...
def active_children() -> list[Any]: ...
current_process = threading.current_thread

View File

@@ -33,9 +33,9 @@ class Listener:
def __exit__(
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, exc_tb: TracebackType | None
) -> None: ...
def __init__(self, address: _Address | None = ..., family: int | None = ..., backlog: int = ...) -> None: ...
def __init__(self, address: _Address | None = None, family: int | None = None, backlog: int = 1) -> None: ...
def accept(self) -> Connection: ...
def close(self) -> None: ...
def Client(address: _Address) -> Connection: ...
def Pipe(duplex: bool = ...) -> tuple[Connection, Connection]: ...
def Pipe(duplex: bool = True) -> tuple[Connection, Connection]: ...