massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / compileall.pyi
1 # Stubs for compileall (Python 3)\r
2 \r
3 import os\r
4 import sys\r
5 from typing import Optional, Union, Pattern\r
6 \r
7 if sys.version_info < (3, 6):\r
8     _Path = Union[str, bytes]\r
9     _SuccessType = bool\r
10 else:\r
11     _Path = Union[str, bytes, os.PathLike]\r
12     _SuccessType = int\r
13 \r
14 # rx can be any object with a 'search' method; once we have Protocols we can change the type\r
15 if sys.version_info < (3, 5):\r
16     def compile_dir(dir: _Path, maxlevels: int = ..., ddir: Optional[_Path] = ..., force: bool = ..., rx: Optional[Pattern] = ..., quiet: int = ..., legacy: bool = ..., optimize: int = ...) -> _SuccessType: ...\r
17 else:\r
18     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
19 def compile_file(fullname: _Path, ddir: Optional[_Path] = ..., force: bool = ..., rx: Optional[Pattern] = ..., quiet: int = ..., legacy: bool = ..., optimize: int = ...) -> _SuccessType: ...\r
20 def compile_path(skip_curdir: bool = ..., maxlevels: int = ..., force: bool = ..., quiet: int = ..., legacy: bool = ..., optimize: int = ...) -> _SuccessType: ...\r