1 # Stubs for compileall (Python 2)
\r
3 from typing import Optional, Pattern, Union
\r
5 _Path = Union[str, bytes]
\r
7 # rx can be any object with a 'search' method; once we have Protocols we can change the type
\r
8 def compile_dir(dir: _Path, maxlevels: int = ..., ddir: Optional[_Path] = ..., force: bool = ..., rx: Optional[Pattern] = ..., quiet: int = ...) -> int: ...
\r
9 def compile_file(fullname: _Path, ddir: Optional[_Path] = ..., force: bool = ..., rx: Optional[Pattern] = ..., quiet: int = ...) -> int: ...
\r
10 def compile_path(skip_curdir: bool = ..., maxlevels: int = ..., force: bool = ..., quiet: int = ...) -> int: ...
\r