Debian Codegraph @

jedi/third_party/typeshed/stdlib/zipapp.pyi

raw symbols SCIP
1 from collections.abc import Callable
2 from pathlib import Path
3 from typing import BinaryIO
4 from typing_extensions import TypeAlias
5
6 __all__ = ["ZipAppError", "create_archive", "get_interpreter"]
7
8 _Path: TypeAlias = str | Path | BinaryIO
9
10 class ZipAppError(ValueError): ...
11
12 def create_archive(
13 source: _Path,
14 target: _Path | None = None,
15 interpreter: str | None = None,
16 main: str | None = None,
17 filter: Callable[[Path], bool] | None = None,
18 compressed: bool = False,
19 ) -> None: ...
20 def get_interpreter(archive: _Path) -> str: ...