mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
9 lines
319 B
Python
9 lines
319 B
Python
from typing import BinaryIO, Text, Union
|
|
|
|
_File = Union[Text, BinaryIO]
|
|
|
|
class Error(Exception): ...
|
|
|
|
def encode(in_file: _File, out_file: _File, name: str | None = ..., mode: int | None = ...) -> None: ...
|
|
def decode(in_file: _File, out_file: _File | None = ..., mode: int | None = ..., quiet: int = ...) -> None: ...
|