massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3.5 / zipapp.pyi
1 # Stubs for zipapp (Python 3.5+)\r
2 \r
3 from pathlib import Path\r
4 import sys\r
5 from typing import BinaryIO, Callable, Optional, Union\r
6 \r
7 _Path = Union[str, Path, BinaryIO]\r
8 \r
9 class ZipAppError(Exception): ...\r
10 \r
11 if sys.version_info >= (3, 7):\r
12     def create_archive(source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...,\r
13                        filter: Optional[Callable[[Path], bool]] = ..., compressed: bool = ...) -> None: ...\r
14 else:\r
15     def create_archive(source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...) -> None: ...\r
16 def get_interpreter(archive: _Path) -> str: ...\r