Skip to content

Commit cd960fe

Browse files
committed
Accept buffer inputs in encodings.cp1252.Codec.decode
1 parent 2e4d4dc commit cd960fe

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)