Add test to import all modules to check validity of stubs (#56)

* add import_all.test builder

* fix errors

* fix typechecking errors

* fix migrations typechecking
This commit is contained in:
Maxim Kurnikov
2019-03-25 01:57:34 +03:00
committed by GitHub
parent 5d0ee40ada
commit 5c6be7ad12
79 changed files with 706 additions and 1155 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, Iterator, List, Optional, Tuple, Union
from typing import Any, Dict, Iterable, Sequence, Type
class ArchiveException(Exception): ...
class UnrecognizedArchiveFormat(ArchiveException): ...
@@ -14,21 +14,17 @@ class Archive:
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 extract(self) -> None: ...
def list(self) -> None: ...
def split_leading_dir(self, path: str) -> Sequence[str]: ...
def has_leading_dir(self, paths: Iterable[str]) -> bool: ...
def extract(self, to_path: str) -> None: ...
def list(self, *args: Any, **kwargs: Any) -> None: ...
class TarArchive(BaseArchive):
def __init__(self, file: str) -> None: ...
def list(self, *args: Any, **kwargs: Any) -> None: ...
def extract(self, to_path: str) -> None: ...
def close(self) -> None: ...
class ZipArchive(BaseArchive):
def __init__(self, file: str) -> None: ...
def list(self, *args: Any, **kwargs: Any) -> None: ...
def extract(self, to_path: str) -> None: ...
def close(self) -> None: ...
extension_map: Any
extension_map: Dict[str, Type[BaseArchive]]