Fix signature of CodecInfo.decode (#12610)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Tomas R
2024-09-01 19:28:13 +02:00
committed by GitHub
parent 4507d26ef2
commit 6b1566d81c

View File

@@ -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: ...