Skip to content

Commit 5ca9600

Browse files
docs: add docstring to ProxyMixin.set_proxy
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 2f08ea9 commit 5ca9600

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎captcha_solver_api/tasks.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ def set_proxy(
5555
proxy_login: Optional[str] = None,
5656
proxy_password: Optional[str] = None,
5757
) -> None:
58+
"""Sets the proxy fields on this task.
59+
60+
Args:
61+
proxy_type: `"http"`, `"socks4"`, or `"socks5"`.
62+
proxy_address: Proxy IP address or hostname.
63+
proxy_port: Proxy port.
64+
proxy_login: Proxy auth username, if required.
65+
proxy_password: Proxy auth password, if required.
66+
"""
5867
self.proxyType = proxy_type
5968
self.proxyAddress = proxy_address
6069
self.proxyPort = proxy_port

0 commit comments

Comments
 (0)