This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Question about httpx.Client
constructor parameter proxies
#2131
Labels
question
Further information is requested
Hello,
Thanks for the great library!
I just ran into a mypy error for the following code.
I find this surprising because the httpx.Client constructor parameter
proxies
is advertised as optional:https://github.com/encode/httpx/blob/master/httpx/_client.py#L598-L599
It's also the default value for the parameter:
https://github.com/encode/httpx/blob/master/httpx/_client.py#L626
Should the type be changed to
typing.Optional[ProxiesTypes]
or am I missing something?I could not find any existing issue related to this but if I somehow miss it feel free to point me to it and close this one 😇
The text was updated successfully, but these errors were encountered: