diff --git a/stdlib/2and3/uu.pyi b/stdlib/2and3/uu.pyi new file mode 100644 index 000000000..ee01c3596 --- /dev/null +++ b/stdlib/2and3/uu.pyi @@ -0,0 +1,10 @@ +# Stubs for uu (Python 2 and 3) + +from typing import BinaryIO, Union, Optional, Text + +_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: ...