massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / zipapp.pyi
1 import sys
2 from pathlib import Path
3 from typing import BinaryIO, Callable, Union
4
5 _Path = Union[str, Path, BinaryIO]
6
7 class ZipAppError(ValueError): ...
8
9 if sys.version_info >= (3, 7):
10     def create_archive(
11         source: _Path,
12         target: _Path | None = ...,
13         interpreter: str | None = ...,
14         main: str | None = ...,
15         filter: Callable[[Path], bool] | None = ...,
16         compressed: bool = ...,
17     ) -> None: ...
18
19 else:
20     def create_archive(
21         source: _Path, target: _Path | None = ..., interpreter: str | None = ..., main: str | None = ...
22     ) -> None: ...
23
24 def get_interpreter(archive: _Path) -> str: ...