mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
21 lines
553 B
Python
21 lines
553 B
Python
from collections.abc import Callable
|
|
from pathlib import Path
|
|
from typing import BinaryIO
|
|
from typing_extensions import TypeAlias
|
|
|
|
__all__ = ["ZipAppError", "create_archive", "get_interpreter"]
|
|
|
|
_Path: TypeAlias = str | Path | BinaryIO
|
|
|
|
class ZipAppError(ValueError): ...
|
|
|
|
def create_archive(
|
|
source: _Path,
|
|
target: _Path | None = None,
|
|
interpreter: str | None = None,
|
|
main: str | None = None,
|
|
filter: Callable[[Path], bool] | None = None,
|
|
compressed: bool = False,
|
|
) -> None: ...
|
|
def get_interpreter(archive: _Path) -> str: ...
|