mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
26 lines
961 B
Python
26 lines
961 B
Python
# Stubs for base64
|
|
|
|
# Based on http://docs.python.org/3.2/library/base64.html
|
|
|
|
from typing import IO
|
|
|
|
def b64encode(s: bytes, altchars: bytes = ...) -> bytes: ...
|
|
def b64decode(s: bytes, altchars: bytes = ...,
|
|
validate: bool = ...) -> bytes: ...
|
|
def standard_b64encode(s: bytes) -> bytes: ...
|
|
def standard_b64decode(s: bytes) -> bytes: ...
|
|
def urlsafe_b64encode(s: bytes) -> bytes: ...
|
|
def urlsafe_b64decode(s: bytes) -> bytes: ...
|
|
def b32encode(s: bytes) -> bytes: ...
|
|
def b32decode(s: bytes, casefold: bool = ...,
|
|
map01: bytes = ...) -> bytes: ...
|
|
def b16encode(s: bytes) -> bytes: ...
|
|
def b16decode(s: bytes, casefold: bool = ...) -> bytes: ...
|
|
|
|
def decode(input: IO[bytes], output: IO[bytes]) -> None: ...
|
|
def decodebytes(s: bytes) -> bytes: ...
|
|
def decodestring(s: bytes) -> bytes: ...
|
|
def encode(input: IO[bytes], output: IO[bytes]) -> None: ...
|
|
def encodebytes(s: bytes) -> bytes: ...
|
|
def encodestring(s: bytes) -> bytes: ...
|