massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2 / redis / connection.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2/redis/connection.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/third_party/2/redis/connection.pyi
new file mode 100644 (file)
index 0000000..daafb85
--- /dev/null
@@ -0,0 +1,131 @@
+from typing import Any\r
+\r
+ssl_available = ...  # type: Any\r
+hiredis_version = ...  # type: Any\r
+HIREDIS_SUPPORTS_CALLABLE_ERRORS = ...  # type: Any\r
+HIREDIS_SUPPORTS_BYTE_BUFFER = ...  # type: Any\r
+msg = ...  # type: Any\r
+HIREDIS_USE_BYTE_BUFFER = ...  # type: Any\r
+SYM_STAR = ...  # type: Any\r
+SYM_DOLLAR = ...  # type: Any\r
+SYM_CRLF = ...  # type: Any\r
+SYM_EMPTY = ...  # type: Any\r
+SERVER_CLOSED_CONNECTION_ERROR = ...  # type: Any\r
+\r
+class Token:\r
+    value = ...  # type: Any\r
+    def __init__(self, value) -> None: ...\r
+\r
+class BaseParser:\r
+    EXCEPTION_CLASSES = ...  # type: Any\r
+    def parse_error(self, response): ...\r
+\r
+class SocketBuffer:\r
+    socket_read_size = ...  # type: Any\r
+    bytes_written = ...  # type: Any\r
+    bytes_read = ...  # type: Any\r
+    def __init__(self, socket, socket_read_size) -> None: ...\r
+    @property\r
+    def length(self): ...\r
+    def read(self, length): ...\r
+    def readline(self): ...\r
+    def purge(self): ...\r
+    def close(self): ...\r
+\r
+class PythonParser(BaseParser):\r
+    encoding = ...  # type: Any\r
+    socket_read_size = ...  # type: Any\r
+    def __init__(self, socket_read_size) -> None: ...\r
+    def __del__(self): ...\r
+    def on_connect(self, connection): ...\r
+    def on_disconnect(self): ...\r
+    def can_read(self): ...\r
+    def read_response(self): ...\r
+\r
+class HiredisParser(BaseParser):\r
+    socket_read_size = ...  # type: Any\r
+    def __init__(self, socket_read_size) -> None: ...\r
+    def __del__(self): ...\r
+    def on_connect(self, connection): ...\r
+    def on_disconnect(self): ...\r
+    def can_read(self): ...\r
+    def read_response(self): ...\r
+\r
+DefaultParser = ...  # type: Any\r
+\r
+class Connection:\r
+    description_format = ...  # type: Any\r
+    pid = ...  # type: Any\r
+    host = ...  # type: Any\r
+    port = ...  # type: Any\r
+    db = ...  # type: Any\r
+    password = ...  # type: Any\r
+    socket_timeout = ...  # type: Any\r
+    socket_connect_timeout = ...  # type: Any\r
+    socket_keepalive = ...  # type: Any\r
+    socket_keepalive_options = ...  # type: Any\r
+    retry_on_timeout = ...  # type: Any\r
+    encoding = ...  # type: Any\r
+    encoding_errors = ...  # type: Any\r
+    decode_responses = ...  # type: Any\r
+    def __init__(self, host=..., port=..., db=..., password=..., socket_timeout=..., socket_connect_timeout=..., socket_keepalive=..., socket_keepalive_options=..., retry_on_timeout=..., encoding=..., encoding_errors=..., decode_responses=..., parser_class=..., socket_read_size=...) -> None: ...\r
+    def __del__(self): ...\r
+    def register_connect_callback(self, callback): ...\r
+    def clear_connect_callbacks(self): ...\r
+    def connect(self): ...\r
+    def on_connect(self): ...\r
+    def disconnect(self): ...\r
+    def send_packed_command(self, command): ...\r
+    def send_command(self, *args): ...\r
+    def can_read(self): ...\r
+    def read_response(self): ...\r
+    def encode(self, value): ...\r
+    def pack_command(self, *args): ...\r
+    def pack_commands(self, commands): ...\r
+\r
+class SSLConnection(Connection):\r
+    description_format = ...  # type: Any\r
+    keyfile = ...  # type: Any\r
+    certfile = ...  # type: Any\r
+    cert_reqs = ...  # type: Any\r
+    ca_certs = ...  # type: Any\r
+    def __init__(self, ssl_keyfile=..., ssl_certfile=..., ssl_cert_reqs=..., ssl_ca_certs=..., **kwargs) -> None: ...\r
+\r
+class UnixDomainSocketConnection(Connection):\r
+    description_format = ...  # type: Any\r
+    pid = ...  # type: Any\r
+    path = ...  # type: Any\r
+    db = ...  # type: Any\r
+    password = ...  # type: Any\r
+    socket_timeout = ...  # type: Any\r
+    retry_on_timeout = ...  # type: Any\r
+    encoding = ...  # type: Any\r
+    encoding_errors = ...  # type: Any\r
+    decode_responses = ...  # type: Any\r
+    def __init__(self, path=..., db=..., password=..., socket_timeout=..., encoding=..., encoding_errors=..., decode_responses=..., retry_on_timeout=..., parser_class=..., socket_read_size=...) -> None: ...\r
+\r
+class ConnectionPool:\r
+    @classmethod\r
+    def from_url(cls, url, db=..., **kwargs): ...\r
+    connection_class = ...  # type: Any\r
+    connection_kwargs = ...  # type: Any\r
+    max_connections = ...  # type: Any\r
+    def __init__(self, connection_class=..., max_connections=..., **connection_kwargs) -> None: ...\r
+    pid = ...  # type: Any\r
+    def reset(self): ...\r
+    def get_connection(self, command_name, *keys, **options): ...\r
+    def make_connection(self): ...\r
+    def release(self, connection): ...\r
+    def disconnect(self): ...\r
+\r
+class BlockingConnectionPool(ConnectionPool):\r
+    queue_class = ...  # type: Any\r
+    timeout = ...  # type: Any\r
+    def __init__(self, max_connections=..., timeout=..., connection_class=..., queue_class=..., **connection_kwargs) -> None: ...\r
+    pid = ...  # type: Any\r
+    pool = ...  # type: Any\r
+    def reset(self): ...\r
+    def make_connection(self): ...\r
+    def get_connection(self, command_name, *keys, **options): ...\r
+    def release(self, connection): ...\r
+    def disconnect(self): ...\r