Re-organize directory structure (#4971)

See discussion in #2491

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
This commit is contained in:
Ivan Levkivskyi
2021-01-27 12:00:39 +00:00
committed by GitHub
parent 869238e587
commit 16ae4c6120
1399 changed files with 601 additions and 97 deletions

24
stdlib/zipapp.pyi Normal file
View File

@@ -0,0 +1,24 @@
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: ...