Files
typeshed/stdlib/3/zipapp.pyi
Shantanu 6ff5b88ca7 typeshed: remove crufty comments (#4699)
Co-authored-by: hauntsaninja <>
2020-10-23 09:40:06 +02:00

25 lines
678 B
Python

import sys
from pathlib import Path
from typing import BinaryIO, Callable, Optional, Union
_Path = Union[str, Path, BinaryIO]
class ZipAppError(ValueError): ...
if sys.version_info >= (3, 7):
def create_archive(
source: _Path,
target: Optional[_Path] = ...,
interpreter: Optional[str] = ...,
main: Optional[str] = ...,
filter: Optional[Callable[[Path], bool]] = ...,
compressed: bool = ...,
) -> None: ...
else:
def create_archive(
source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...
) -> None: ...
def get_interpreter(archive: _Path) -> str: ...