Skip to content

Commit b559180

Browse files
authored
[encodings.cp1252] Accept buffer inputs in Codec.decode (#16665)
1 parent d51aee8 commit b559180

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎stdlib/encodings/cp1252.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ from _typeshed import ReadableBuffer
44

55
class Codec(codecs.Codec):
66
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ...
7-
def decode(self, input: bytes, errors: str = "strict") -> tuple[str, int]: ...
7+
def decode(self, input: ReadableBuffer, errors: str = "strict") -> tuple[str, int]: ...
88

99
class IncrementalEncoder(codecs.IncrementalEncoder):
1010
def encode(self, input: str, final: bool = False) -> bytes: ...

0 commit comments

Comments
 (0)