apply black and isort (#4287)

* apply black and isort

* move some type ignores
This commit is contained in:
Jelle Zijlstra
2020-06-28 13:31:00 -07:00
committed by GitHub
parent fe58699ca5
commit 5d553c9584
800 changed files with 13875 additions and 10332 deletions

View File

@@ -1,13 +1,17 @@
# Stubs for uu (Python 2 and 3)
import sys
from typing import BinaryIO, Union, Optional, Text
from typing import BinaryIO, Optional, Text, Union
_File = Union[Text, BinaryIO]
class Error(Exception): ...
if sys.version_info >= (3, 7):
def encode(in_file: _File, out_file: _File, name: Optional[str] = ..., mode: Optional[int] = ..., *, backtick: bool = ...) -> None: ...
def encode(
in_file: _File, out_file: _File, name: Optional[str] = ..., mode: Optional[int] = ..., *, backtick: bool = ...
) -> None: ...
else:
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: ...