massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / httplib2 / httplib2 / socks.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/httplib2/httplib2/socks.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/httplib2/httplib2/socks.pyi
new file mode 100644 (file)
index 0000000..c65363d
--- /dev/null
@@ -0,0 +1,42 @@
+import socket
+from typing import Any
+
+PROXY_TYPE_SOCKS4: int
+PROXY_TYPE_SOCKS5: int
+PROXY_TYPE_HTTP: int
+PROXY_TYPE_HTTP_NO_TUNNEL: int
+
+class ProxyError(Exception): ...
+class GeneralProxyError(ProxyError): ...
+class Socks5AuthError(ProxyError): ...
+class Socks5Error(ProxyError): ...
+class Socks4Error(ProxyError): ...
+class HTTPError(ProxyError): ...
+
+def setdefaultproxy(
+    proxytype: Any | None = ...,
+    addr: Any | None = ...,
+    port: Any | None = ...,
+    rdns: bool = ...,
+    username: Any | None = ...,
+    password: Any | None = ...,
+) -> None: ...
+def wrapmodule(module) -> None: ...
+
+class socksocket(socket.socket):
+    def __init__(self, family=..., type=..., proto: int = ..., _sock: Any | None = ...) -> None: ...
+    def sendall(self, content, *args): ...
+    def setproxy(
+        self,
+        proxytype: Any | None = ...,
+        addr: Any | None = ...,
+        port: Any | None = ...,
+        rdns: bool = ...,
+        username: Any | None = ...,
+        password: Any | None = ...,
+        headers: Any | None = ...,
+    ) -> None: ...
+    def getproxysockname(self): ...
+    def getproxypeername(self): ...
+    def getpeername(self): ...
+    def connect(self, destpair) -> None: ...