mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-30 14:45:23 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user