mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
fix Telnet#expect (stdlib/telnetlib.pyi) (#13377)
fix type of Telnet#expect
This commit is contained in:
@@ -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__(
|
||||
|
||||
Reference in New Issue
Block a user