Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stubs/PySocks/socks.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def set_self_blocking(function: Callable[_P, _T]) -> Callable[_P, _T]: ... # un

class ProxyError(IOError):
msg: str
socket_err: socket.error
socket_err: socket.error | None
def __init__(self, msg: str, socket_err: socket.error | None = None) -> None: ...

class GeneralProxyError(ProxyError): ...
Expand Down Expand Up @@ -74,7 +74,7 @@ _Endpoint: TypeAlias = tuple[str, int]

def create_connection(
dest_pair: _Endpoint,
timeout: int | None = None,
timeout: float | int | None = None,
source_address: _Endpoint | None = None,
proxy_type: _ProxyType | None = None,
proxy_addr: str | None = None,
Expand Down
Loading