--- /dev/null
+# 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