mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
12 lines
620 B
Python
12 lines
620 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 = ...) -> None: ...
|
|
def encodestring(s: ReadableBuffer, quotetabs: int = ..., header: int = ...) -> bytes: ...
|
|
def decode(input: _Input, output: SupportsWrite[bytes], header: int = ...) -> None: ...
|
|
def decodestring(s: str | ReadableBuffer, header: int = ...) -> bytes: ...
|