diff --git a/stdlib/encodings/cp1250.pyi b/stdlib/encodings/cp1250.pyi index f62195662ce9..2924e73c3543 100644 --- a/stdlib/encodings/cp1250.pyi +++ b/stdlib/encodings/cp1250.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: ... diff --git a/stdlib/encodings/cp1251.pyi b/stdlib/encodings/cp1251.pyi index f62195662ce9..2924e73c3543 100644 --- a/stdlib/encodings/cp1251.pyi +++ b/stdlib/encodings/cp1251.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: ... diff --git a/stdlib/encodings/cp1253.pyi b/stdlib/encodings/cp1253.pyi index f62195662ce9..2924e73c3543 100644 --- a/stdlib/encodings/cp1253.pyi +++ b/stdlib/encodings/cp1253.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: ... diff --git a/stdlib/encodings/cp1254.pyi b/stdlib/encodings/cp1254.pyi index f62195662ce9..2924e73c3543 100644 --- a/stdlib/encodings/cp1254.pyi +++ b/stdlib/encodings/cp1254.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: ... diff --git a/stdlib/encodings/cp1255.pyi b/stdlib/encodings/cp1255.pyi index f62195662ce9..2924e73c3543 100644 --- a/stdlib/encodings/cp1255.pyi +++ b/stdlib/encodings/cp1255.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: ... diff --git a/stdlib/encodings/cp1256.pyi b/stdlib/encodings/cp1256.pyi index f62195662ce9..2924e73c3543 100644 --- a/stdlib/encodings/cp1256.pyi +++ b/stdlib/encodings/cp1256.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: ... diff --git a/stdlib/encodings/cp1257.pyi b/stdlib/encodings/cp1257.pyi index f62195662ce9..2924e73c3543 100644 --- a/stdlib/encodings/cp1257.pyi +++ b/stdlib/encodings/cp1257.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: ... diff --git a/stdlib/encodings/cp1258.pyi b/stdlib/encodings/cp1258.pyi index f62195662ce9..2924e73c3543 100644 --- a/stdlib/encodings/cp1258.pyi +++ b/stdlib/encodings/cp1258.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: ...