massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / mysqlclient / MySQLdb / connections.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/mysqlclient/MySQLdb/connections.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/mysqlclient/MySQLdb/connections.pyi
new file mode 100644 (file)
index 0000000..93bc84a
--- /dev/null
@@ -0,0 +1,48 @@
+from typing import Any
+
+from . import _mysql, cursors as cursors
+from ._exceptions import (
+    DatabaseError as DatabaseError,
+    DataError as DataError,
+    Error as Error,
+    IntegrityError as IntegrityError,
+    InterfaceError as InterfaceError,
+    InternalError as InternalError,
+    NotSupportedError as NotSupportedError,
+    OperationalError as OperationalError,
+    ProgrammingError as ProgrammingError,
+    Warning as Warning,
+)
+
+re_numeric_part: Any
+
+def numeric_part(s): ...
+
+class Connection(_mysql.connection):
+    default_cursor: Any
+    cursorclass: Any
+    encoders: Any
+    encoding: str
+    messages: Any
+    def __init__(self, *args, **kwargs): ...
+    def __enter__(self): ...
+    def __exit__(self, exc_type, exc_value, traceback) -> None: ...
+    def autocommit(self, on) -> None: ...
+    def cursor(self, cursorclass: Any | None = ...): ...
+    def query(self, query) -> None: ...
+    def literal(self, o): ...
+    def begin(self) -> None: ...
+    def warning_count(self): ...
+    def set_character_set(self, charset) -> None: ...
+    def set_sql_mode(self, sql_mode) -> None: ...
+    def show_warnings(self): ...
+    Warning: Any
+    Error: Any
+    InterfaceError: Any
+    DatabaseError: Any
+    DataError: Any
+    OperationalError: Any
+    IntegrityError: Any
+    InternalError: Any
+    ProgrammingError: Any
+    NotSupportedError: Any