run black over stubs, add checking to travis

This commit is contained in:
Maxim Kurnikov
2018-12-03 18:52:44 +03:00
parent d5bc7d4ab2
commit cf6119bf9b
420 changed files with 2295 additions and 8384 deletions

View File

@@ -1,6 +1,5 @@
from typing import Any, Iterator, List, Optional, Tuple, Union
class ArchiveException(Exception): ...
class UnrecognizedArchiveFormat(ArchiveException): ...
@@ -9,20 +8,14 @@ def extract(path: str, to_path: str = ...) -> None: ...
class Archive:
def __init__(self, file: str) -> None: ...
def __enter__(self) -> Archive: ...
def __exit__(
self, exc_type: None, exc_value: None, traceback: None
) -> None: ...
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...
def extract(self, to_path: str = ...) -> None: ...
def list(self) -> None: ...
def close(self) -> None: ...
class BaseArchive:
def split_leading_dir(
self, path: str
) -> Union[List[str], Tuple[str, str]]: ...
def has_leading_dir(
self, paths: Union[Iterator[Any], List[str]]
) -> bool: ...
def split_leading_dir(self, path: str) -> Union[List[str], Tuple[str, str]]: ...
def has_leading_dir(self, paths: Union[Iterator[Any], List[str]]) -> bool: ...
def extract(self) -> None: ...
def list(self) -> None: ...