make pep561 compliant

This commit is contained in:
Maxim Kurnikov
2018-07-29 20:19:43 +03:00
parent 89bb6eac75
commit f471b7b1bf
372 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
from typing import (
List,
Tuple,
Type,
Union,
)
def extract(path: str, to_path: str = ...) -> None: ...
class Archive:
def __enter__(self) -> Archive: ...
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...
def __init__(self, file: str) -> None: ...
@staticmethod
def _archive_cls(file: str) -> Type[BaseArchive]: ...
def close(self) -> None: ...
def extract(self, to_path: str = ...) -> None: ...
class BaseArchive:
@staticmethod
def _copy_permissions(mode: int, filename: str) -> None: ...
def has_leading_dir(self, paths: List[str]) -> bool: ...
def split_leading_dir(self, path: str) -> Union[List[str], Tuple[str, str]]: ...
class TarArchive:
def __init__(self, file: str) -> None: ...
def close(self) -> None: ...
def extract(self, to_path: str) -> None: ...
class ZipArchive:
def __init__(self, file: str) -> None: ...
def close(self) -> None: ...
def extract(self, to_path: str) -> None: ...