1 # Stubs for zipapp (Python 3.5+)
\r
3 from pathlib import Path
\r
5 from typing import BinaryIO, Callable, Optional, Union
\r
7 _Path = Union[str, Path, BinaryIO]
\r
9 class ZipAppError(Exception): ...
\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
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