mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-01 09:03:23 +08:00
Use ReadableBuffer instead of bytes in base64.pyi (#7605)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer
|
||||
from typing import IO
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
@@ -46,30 +47,30 @@ else:
|
||||
"urlsafe_b64decode",
|
||||
]
|
||||
|
||||
def b64encode(s: bytes, altchars: bytes | None = ...) -> bytes: ...
|
||||
def b64decode(s: str | bytes, altchars: bytes | None = ..., validate: bool = ...) -> bytes: ...
|
||||
def standard_b64encode(s: bytes) -> bytes: ...
|
||||
def standard_b64decode(s: str | bytes) -> bytes: ...
|
||||
def urlsafe_b64encode(s: bytes) -> bytes: ...
|
||||
def urlsafe_b64decode(s: str | bytes) -> bytes: ...
|
||||
def b32encode(s: bytes) -> bytes: ...
|
||||
def b32decode(s: str | bytes, casefold: bool = ..., map01: bytes | None = ...) -> bytes: ...
|
||||
def b16encode(s: bytes) -> bytes: ...
|
||||
def b16decode(s: str | bytes, casefold: bool = ...) -> bytes: ...
|
||||
def b64encode(s: ReadableBuffer, altchars: ReadableBuffer | None = ...) -> bytes: ...
|
||||
def b64decode(s: str | ReadableBuffer, altchars: ReadableBuffer | None = ..., validate: bool = ...) -> bytes: ...
|
||||
def standard_b64encode(s: ReadableBuffer) -> bytes: ...
|
||||
def standard_b64decode(s: str | ReadableBuffer) -> bytes: ...
|
||||
def urlsafe_b64encode(s: ReadableBuffer) -> bytes: ...
|
||||
def urlsafe_b64decode(s: str | ReadableBuffer) -> bytes: ...
|
||||
def b32encode(s: ReadableBuffer) -> bytes: ...
|
||||
def b32decode(s: str | ReadableBuffer, casefold: bool = ..., map01: bytes | None = ...) -> bytes: ...
|
||||
def b16encode(s: ReadableBuffer) -> bytes: ...
|
||||
def b16decode(s: str | ReadableBuffer, casefold: bool = ...) -> bytes: ...
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
def b32hexencode(s: bytes) -> bytes: ...
|
||||
def b32hexdecode(s: str | bytes, casefold: bool = ...) -> bytes: ...
|
||||
def b32hexencode(s: ReadableBuffer) -> bytes: ...
|
||||
def b32hexdecode(s: str | ReadableBuffer, casefold: bool = ...) -> bytes: ...
|
||||
|
||||
def a85encode(b: bytes, *, foldspaces: bool = ..., wrapcol: int = ..., pad: bool = ..., adobe: bool = ...) -> bytes: ...
|
||||
def a85decode(b: str | bytes, *, foldspaces: bool = ..., adobe: bool = ..., ignorechars: str | bytes = ...) -> bytes: ...
|
||||
def b85encode(b: bytes, pad: bool = ...) -> bytes: ...
|
||||
def b85decode(b: str | bytes) -> bytes: ...
|
||||
def a85encode(b: ReadableBuffer, *, foldspaces: bool = ..., wrapcol: int = ..., pad: bool = ..., adobe: bool = ...) -> bytes: ...
|
||||
def a85decode(b: str | ReadableBuffer, *, foldspaces: bool = ..., adobe: bool = ..., ignorechars: str | bytes = ...) -> bytes: ...
|
||||
def b85encode(b: ReadableBuffer, pad: bool = ...) -> bytes: ...
|
||||
def b85decode(b: str | ReadableBuffer) -> bytes: ...
|
||||
def decode(input: IO[bytes], output: IO[bytes]) -> None: ...
|
||||
def encode(input: IO[bytes], output: IO[bytes]) -> None: ...
|
||||
def encodebytes(s: bytes) -> bytes: ...
|
||||
def decodebytes(s: bytes) -> bytes: ...
|
||||
def encodebytes(s: ReadableBuffer) -> bytes: ...
|
||||
def decodebytes(s: ReadableBuffer) -> bytes: ...
|
||||
|
||||
if sys.version_info < (3, 9):
|
||||
def encodestring(s: bytes) -> bytes: ...
|
||||
def decodestring(s: bytes) -> bytes: ...
|
||||
def encodestring(s: ReadableBuffer) -> bytes: ...
|
||||
def decodestring(s: ReadableBuffer) -> bytes: ...
|
||||
|
||||
Reference in New Issue
Block a user