Skip to content

Commit c20450e

Browse files
tomasr8Akuli
authored andcommitted
Fix signature of CodecInfo.decode (python#12610)
Co-authored-by: Akuli <[email protected]>
1 parent cee3af8 commit c20450e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/codecs.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class _Encoder(Protocol):
8080
def __call__(self, input: str, errors: str = ..., /) -> tuple[bytes, int]: ... # signature of Codec().encode
8181

8282
class _Decoder(Protocol):
83-
def __call__(self, input: bytes, errors: str = ..., /) -> tuple[str, int]: ... # signature of Codec().decode
83+
def __call__(self, input: ReadableBuffer, errors: str = ..., /) -> tuple[str, int]: ... # signature of Codec().decode
8484

8585
class _StreamReader(Protocol):
8686
def __call__(self, stream: _ReadableStream, errors: str = ..., /) -> StreamReader: ...

0 commit comments

Comments
 (0)