1 # Source(py2): https://hg.python.org/cpython/file/2.7/Lib/codeop.py
\r
2 # Source(py3): https://github.com/python/cpython/blob/master/Lib/codeop.py
\r
4 from types import CodeType
\r
5 from typing import Optional
\r
7 def compile_command(source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...
\r
10 flags = ... # type: int
\r
11 def __init__(self) -> None: ...
\r
12 def __call__(self, source: str, filename: str, symbol: str) -> CodeType: ...
\r
14 class CommandCompiler:
\r
15 compiler = ... # type: Compile
\r
16 def __init__(self) -> None: ...
\r
17 def __call__(self, source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...
\r