-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathquopri.pyi
More file actions
11 lines (8 loc) · 635 Bytes
/
quopri.pyi
File metadata and controls
11 lines (8 loc) · 635 Bytes
1
2
3
4
5
6
7
8
9
10
11
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: bool = False) -> None: ...
def encodestring(s: ReadableBuffer, quotetabs: bool = False, header: bool = False) -> bytes: ...
def decode(input: _Input, output: SupportsWrite[bytes], header: bool = False) -> None: ...
def decodestring(s: str | ReadableBuffer, header: bool = False) -> bytes: ...