Files
typeshed/stdlib/quopri.pyi
2023-01-18 09:37:34 +01:00

12 lines
630 B
Python

from _typeshed import ReadableBuffer, SupportsNoArgReadline, SupportsRead, SupportsWrite
from typing import Protocol
__all__ = ["encode", "decode", "encodestring", "decodestring"]
class _Input(SupportsRead[bytes], SupportsNoArgReadline[bytes], Protocol): ...
def encode(input: _Input, output: SupportsWrite[bytes], quotetabs: int, header: int = False) -> None: ...
def encodestring(s: ReadableBuffer, quotetabs: int = False, header: int = False) -> bytes: ...
def decode(input: _Input, output: SupportsWrite[bytes], header: int = False) -> None: ...
def decodestring(s: str | ReadableBuffer, header: int = False) -> bytes: ...