massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2and3 / codeop.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2and3/codeop.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2and3/codeop.pyi
new file mode 100644 (file)
index 0000000..3ca799e
--- /dev/null
@@ -0,0 +1,17 @@
+# 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