massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3.5 / zipapp.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3.5/zipapp.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3.5/zipapp.pyi
new file mode 100644 (file)
index 0000000..955799c
--- /dev/null
@@ -0,0 +1,16 @@
+# Stubs for zipapp (Python 3.5+)\r
+\r
+from pathlib import Path\r
+import sys\r
+from typing import BinaryIO, Callable, Optional, Union\r
+\r
+_Path = Union[str, Path, BinaryIO]\r
+\r
+class ZipAppError(Exception): ...\r
+\r
+if sys.version_info >= (3, 7):\r
+    def create_archive(source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...,\r
+                       filter: Optional[Callable[[Path], bool]] = ..., compressed: bool = ...) -> None: ...\r
+else:\r
+    def create_archive(source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...) -> None: ...\r
+def get_interpreter(archive: _Path) -> str: ...\r