codecs: _buffer_encode returns (bytes, int) (#9587)

This commit is contained in:
Adam Orr
2023-01-25 11:39:21 -08:00
committed by GitHub
parent a9b4fa0a32
commit 0fe3ef28fe

View File

@@ -182,7 +182,7 @@ class BufferedIncrementalEncoder(IncrementalEncoder):
buffer: str
def __init__(self, errors: str = "strict") -> None: ...
@abstractmethod
def _buffer_encode(self, input: str, errors: str, final: bool) -> bytes: ...
def _buffer_encode(self, input: str, errors: str, final: bool) -> tuple[bytes, int]: ...
def encode(self, input: str, final: bool = False) -> bytes: ...
class BufferedIncrementalDecoder(IncrementalDecoder):