mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-24 17:28:40 +08:00
add the remaining encodings submodules (#13123)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import codecs
|
||||
import re
|
||||
from _typeshed import ReadableBuffer
|
||||
|
||||
dots: re.Pattern[str]
|
||||
ace_prefix: bytes
|
||||
sace_prefix: str
|
||||
|
||||
def nameprep(label: str) -> str: ...
|
||||
def ToASCII(label: str) -> bytes: ...
|
||||
def ToUnicode(label: bytes | str) -> str: ...
|
||||
|
||||
class Codec(codecs.Codec):
|
||||
def encode(self, input: str, errors: str = "strict") -> tuple[bytes, int]: ...
|
||||
def decode(self, input: ReadableBuffer | str, errors: str = "strict") -> tuple[str, int]: ...
|
||||
|
||||
class IncrementalEncoder(codecs.BufferedIncrementalEncoder):
|
||||
def _buffer_encode(self, input: str, errors: str, final: bool) -> tuple[bytes, int]: ...
|
||||
|
||||
class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
|
||||
def _buffer_decode(self, input: ReadableBuffer | str, errors: str, final: bool) -> tuple[str, int]: ...
|
||||
|
||||
class StreamWriter(Codec, codecs.StreamWriter): ...
|
||||
class StreamReader(Codec, codecs.StreamReader): ...
|
||||
|
||||
def getregentry() -> codecs.CodecInfo: ...
|
||||
Reference in New Issue
Block a user