--- /dev/null
+# Source(py2): https://hg.python.org/cpython/file/2.7/Lib/codeop.py\r
+# Source(py3): https://github.com/python/cpython/blob/master/Lib/codeop.py\r
+\r
+from types import CodeType\r
+from typing import Optional\r
+\r
+def compile_command(source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...\r
+\r
+class Compile:\r
+ flags = ... # type: int\r
+ def __init__(self) -> None: ...\r
+ def __call__(self, source: str, filename: str, symbol: str) -> CodeType: ...\r
+\r
+class CommandCompiler:\r
+ compiler = ... # type: Compile\r
+ def __init__(self) -> None: ...\r
+ def __call__(self, source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...\r