From 6b1566d81cee33404317089a3b05bc8c0a517e8b Mon Sep 17 00:00:00 2001 From: Tomas R Date: Sun, 1 Sep 2024 19:28:13 +0200 Subject: [PATCH] Fix signature of `CodecInfo.decode` (#12610) Co-authored-by: Akuli --- stdlib/codecs.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/codecs.pyi b/stdlib/codecs.pyi index 9bc098dbc..a41df9752 100644 --- a/stdlib/codecs.pyi +++ b/stdlib/codecs.pyi @@ -80,7 +80,7 @@ class _Encoder(Protocol): def __call__(self, input: str, errors: str = ..., /) -> tuple[bytes, int]: ... # signature of Codec().encode class _Decoder(Protocol): - def __call__(self, input: bytes, errors: str = ..., /) -> tuple[str, int]: ... # signature of Codec().decode + def __call__(self, input: ReadableBuffer, errors: str = ..., /) -> tuple[str, int]: ... # signature of Codec().decode class _StreamReader(Protocol): def __call__(self, stream: _ReadableStream, errors: str = ..., /) -> StreamReader: ...