mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
codecs: _buffer_encode returns (bytes, int) (#9587)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user