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,7 +1,7 @@
# Stubs for zipapp (Python 3.5+)
from pathlib import Path
import sys
from pathlib import Path
from typing import BinaryIO, Callable, Optional, Union
_Path = Union[str, Path, BinaryIO]
@@ -9,8 +9,18 @@ _Path = Union[str, Path, BinaryIO]
class ZipAppError(ValueError): ...
if sys.version_info >= (3, 7):
def create_archive(source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...,
filter: Optional[Callable[[Path], bool]] = ..., compressed: bool = ...) -> None: ...
def create_archive(
source: _Path,
target: Optional[_Path] = ...,
interpreter: Optional[str] = ...,
main: Optional[str] = ...,
filter: Optional[Callable[[Path], bool]] = ...,
compressed: bool = ...,
) -> None: ...
else:
def create_archive(source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...) -> None: ...
def create_archive(
source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...
) -> None: ...
def get_interpreter(archive: _Path) -> str: ...