Skip to content

Commit 0fe3ef2

Browse files
authored
codecs: _buffer_encode returns (bytes, int) (#9587)
1 parent a9b4fa0 commit 0fe3ef2

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
@@ -182,7 +182,7 @@ class BufferedIncrementalEncoder(IncrementalEncoder):
182182
buffer: str
183183
def __init__(self, errors: str = "strict") -> None: ...
184184
@abstractmethod
185-
def _buffer_encode(self, input: str, errors: str, final: bool) -> bytes: ...
185+
def _buffer_encode(self, input: str, errors: str, final: bool) -> tuple[bytes, int]: ...
186186
def encode(self, input: str, final: bool = False) -> bytes: ...
187187

188188
class BufferedIncrementalDecoder(IncrementalDecoder):

0 commit comments

Comments
 (0)