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

@@ -88,15 +88,15 @@ NOOPT: bytes
class Telnet:
host: str | None # undocumented
def __init__(self, host: str | None = ..., port: int = ..., timeout: float = ...) -> None: ...
def open(self, host: str, port: int = ..., timeout: float = ...) -> None: ...
def __init__(self, host: str | None = None, port: int = 0, timeout: float = ...) -> None: ...
def open(self, host: str, port: int = 0, timeout: float = ...) -> None: ...
def msg(self, msg: str, *args: Any) -> None: ...
def set_debuglevel(self, debuglevel: int) -> None: ...
def close(self) -> None: ...
def get_socket(self) -> socket.socket: ...
def fileno(self) -> int: ...
def write(self, buffer: bytes) -> None: ...
def read_until(self, match: bytes, timeout: float | None = ...) -> bytes: ...
def read_until(self, match: bytes, timeout: float | None = None) -> bytes: ...
def read_all(self) -> bytes: ...
def read_some(self) -> bytes: ...
def read_very_eager(self) -> bytes: ...
@@ -113,7 +113,7 @@ class Telnet:
def mt_interact(self) -> None: ...
def listener(self) -> None: ...
def expect(
self, list: Sequence[Pattern[bytes] | bytes], timeout: float | None = ...
self, list: Sequence[Pattern[bytes] | bytes], timeout: float | None = None
) -> tuple[int, Match[bytes] | None, bytes]: ...
def __enter__(self: Self) -> Self: ...
def __exit__(