Question about httpx.Client constructor parameter proxies
#2132
Unanswered
chagui
asked this question in
Potential Issue
Replies: 2 comments 1 reply
-
|
Hi @chagui, are you using How does |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I'm tentatively moving this to Discussions for now, since we try to keep Issues for well-defined work items. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
proxiesis 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 😇
Beta Was this translation helpful? Give feedback.
All reactions