From 46cbe78e4c22b7a6d0f87bf3bb521a5c5f42a348 Mon Sep 17 00:00:00 2001 From: pinterior Date: Fri, 10 Jan 2025 12:01:27 +0900 Subject: [PATCH] fix Telnet#expect (stdlib/telnetlib.pyi) (#13377) fix type of Telnet#expect --- stdlib/telnetlib.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/telnetlib.pyi b/stdlib/telnetlib.pyi index 294a1cb12b63..6b599256d17b 100644 --- a/stdlib/telnetlib.pyi +++ b/stdlib/telnetlib.pyi @@ -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__(