Files
typeshed/stdlib/3.5/zipapp.pyi
Jelle Zijlstra af222eace0 add stubs for zipapp (#1046)
* add zipapp
* add BinaryIO to _Path
2017-03-20 20:07:58 -07:00

12 lines
363 B
Python

# Stubs for zipapp (Python 3.5+)
from pathlib import Path
from typing import BinaryIO, Optional, Union
_Path = Union[str, Path, BinaryIO]
class ZipAppError(Exception): ...
def create_archive(source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...) -> None: ...
def get_interpreter(archive: _Path) -> str: ...