From cd960fe1c7c124f68fb922a988c1c8de12fec488 Mon Sep 17 00:00:00 2001 From: Alvaro Balbin <153404840+AlvaroBalbin@users.noreply.github.com> Date: Sat, 31 Oct 2026 00:03:55 +0000 Subject: [PATCH] Accept buffer inputs in encodings.cp1252.Codec.decode --- stdlib/encodings/cp1252.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: ...