fix Telnet#expect (stdlib/telnetlib.pyi) (#13377)

fix type of Telnet#expect
This commit is contained in:
pinterior
2025-01-10 12:01:27 +09:00
committed by GitHub
parent e55c13a612
commit 46cbe78e4c

View File

@@ -1,5 +1,5 @@
import socket
from collections.abc import Callable, Sequence
from collections.abc import Callable, MutableSequence, Sequence
from re import Match, Pattern
from types import TracebackType
from typing import Any
@@ -114,7 +114,7 @@ class Telnet:
def mt_interact(self) -> None: ...
def listener(self) -> None: ...
def expect(
self, list: Sequence[Pattern[bytes] | bytes], timeout: float | None = None
self, list: MutableSequence[Pattern[bytes] | bytes] | Sequence[Pattern[bytes]], timeout: float | None = None
) -> tuple[int, Match[bytes] | None, bytes]: ...
def __enter__(self) -> Self: ...
def __exit__(