1 # Stubs for compileall (Python 3)
\r
5 from typing import Optional, Union, Pattern
\r
7 if sys.version_info < (3, 6):
\r
8 _Path = Union[str, bytes]
\r
11 _Path = Union[str, bytes, os.PathLike]
\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
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