massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / compileall.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/compileall.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/compileall.pyi
new file mode 100644 (file)
index 0000000..fd65e83
--- /dev/null
@@ -0,0 +1,20 @@
+# Stubs for compileall (Python 3)\r
+\r
+import os\r
+import sys\r
+from typing import Optional, Union, Pattern\r
+\r
+if sys.version_info < (3, 6):\r
+    _Path = Union[str, bytes]\r
+    _SuccessType = bool\r
+else:\r
+    _Path = Union[str, bytes, os.PathLike]\r
+    _SuccessType = int\r
+\r
+# rx can be any object with a 'search' method; once we have Protocols we can change the type\r
+if sys.version_info < (3, 5):\r
+    def compile_dir(dir: _Path, maxlevels: int = ..., ddir: Optional[_Path] = ..., force: bool = ..., rx: Optional[Pattern] = ..., quiet: int = ..., legacy: bool = ..., optimize: int = ...) -> _SuccessType: ...\r
+else:\r
+    def compile_dir(dir: _Path, maxlevels: int = ..., ddir: Optional[_Path] = ..., force: bool = ..., rx: Optional[Pattern] = ..., quiet: int = ..., legacy: bool = ..., optimize: int = ..., workers: int = ...) -> _SuccessType: ...\r
+def compile_file(fullname: _Path, ddir: Optional[_Path] = ..., force: bool = ..., rx: Optional[Pattern] = ..., quiet: int = ..., legacy: bool = ..., optimize: int = ...) -> _SuccessType: ...\r
+def compile_path(skip_curdir: bool = ..., maxlevels: int = ..., force: bool = ..., quiet: int = ..., legacy: bool = ..., optimize: int = ...) -> _SuccessType: ...\r