merge with stubgen output

This commit is contained in:
Maxim Kurnikov
2018-07-29 23:25:20 +03:00
parent 496a6274e7
commit 4866354600
294 changed files with 10234 additions and 10842 deletions

View File

@@ -1,38 +1,46 @@
from typing import (
List,
Tuple,
Type,
Union,
)
# Stubs for django.utils.archive (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from typing import List, Tuple, Type, Union
class ArchiveException(Exception): ...
class UnrecognizedArchiveFormat(ArchiveException): ...
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: ...
_archive: Any = ...
def __init__(self, file: str) -> None: ...
@staticmethod
def _archive_cls(file: str) -> Type[BaseArchive]: ...
def close(self) -> None: ...
def __enter__(self) -> Archive: ...
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:
@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]]: ...
def has_leading_dir(self, paths: List[str]) -> bool: ...
def extract(self) -> None: ...
def list(self) -> None: ...
class TarArchive:
class TarArchive(BaseArchive):
_archive: Any = ...
def __init__(self, file: str) -> None: ...
def close(self) -> None: ...
def list(self, *args: Any, **kwargs: Any) -> 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: ...
class ZipArchive(BaseArchive):
_archive: Any = ...
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