diff --git a/stdlib/encodings/cp1252.pyi b/stdlib/encodings/cp1252.pyi index f62195662ce9..2924e73c3543 100644 --- a/stdlib/encodings/cp1252.pyi +++ b/stdlib/encodings/cp1252.pyi @@ -4,7 +4,7 @@ from _typeshed import ReadableBuffer class Codec(codecs.Codec): def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ... - def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ... + def decode(self, input: ReadableBuffer, errors: str = "strict") -> tuple[str, int]: ... class IncrementalEncoder(codecs.IncrementalEncoder): def encode(self, input: str, final: bool = False) -> bytes: ...