mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
committed by
Łukasz Langa
parent
dca9adb9d3
commit
af222eace0
11
stdlib/3.5/zipapp.pyi
Normal file
11
stdlib/3.5/zipapp.pyi
Normal file
@@ -0,0 +1,11 @@
|
||||
# Stubs for zipapp (Python 3.5+)
|
||||
|
||||
from pathlib import Path
|
||||
from typing import BinaryIO, Optional, Union
|
||||
|
||||
_Path = Union[str, Path, BinaryIO]
|
||||
|
||||
class ZipAppError(Exception): ...
|
||||
|
||||
def create_archive(source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...) -> None: ...
|
||||
def get_interpreter(archive: _Path) -> str: ...
|
||||
Reference in New Issue
Block a user