mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -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__(
|
||||
|
||||
Reference in New Issue
Block a user