Skip to content

Commit

Permalink
fix Telnet#expect (stdlib/telnetlib.pyi) (#13377)
Browse files Browse the repository at this point in the history
fix type of Telnet#expect
  • Loading branch information
pinterior authored Jan 10, 2025
1 parent e55c13a commit 46cbe78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/telnetlib.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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__(
Expand Down

0 comments on commit 46cbe78

Please sign in to comment.