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