From 0fe3ef28fea8fb059f4c0d490d89764c49a341f5 Mon Sep 17 00:00:00 2001 From: Adam Orr Date: Wed, 25 Jan 2023 11:39:21 -0800 Subject: [PATCH] codecs: _buffer_encode returns (bytes, int) (#9587) --- stdlib/codecs.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/codecs.pyi b/stdlib/codecs.pyi index 17d26ec89..7eaf6b509 100644 --- a/stdlib/codecs.pyi +++ b/stdlib/codecs.pyi @@ -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):