Skip to content

[PySocks] Correct timeout and optional socket error types - #16797

Open
iamabhisheknag wants to merge 1 commit into
python:mainfrom
iamabhisheknag:fix/pysocks-timeout-error-types
Open

iamabhisheknag wants to merge 1 commit into
python:mainfrom
iamabhisheknag:fix/pysocks-timeout-error-types

Conversation

@iamabhisheknag

Copy link
Copy Markdown
Contributor

Accept fractional seconds for create_connection(timeout=...) and allow None for ProxyError.socket_err, matching the upstream implementation and runtime behavior in PySocks 1.7.1.

AI assistance: OpenAI coding assistant (GPT-6).

@github-actions

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

urllib3 (https://github.com/urllib3/urllib3)
+ src/urllib3/contrib/socks.py:118: error: Unused "type: ignore" comment  [unused-ignore]

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant