We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thanks to @alexprengere for raising this issue...
Originally posted by alexprengere April 18, 2023 From the docs: https://www.python-httpx.org/advanced/#netrc-support
>>> auth = httpx.NetRCAuth() >>> client = httpx.Client(auth=auth)
Using that snippet will yield the error:
>>> httpx.NetRCAuth() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: NetRCAuth.__init__() missing 1 required positional argument: 'file'
Using NetRCAuth(file=None) fixes the issue, and produces the expected behavior, but perhaps it should be made the default value (I can open a PR).
NetRCAuth(file=None)
The text was updated successfully, but these errors were encountered:
Fixes encode#2666: None is the default value of file for httpx.NetRCAuth
3674f45
Fixes #2666: None is the default value of file for httpx.NetRCAuth (#…
c1cc6b2
…2667)
Successfully merging a pull request may close this issue.
Thanks to @alexprengere for raising this issue...
Discussed in #2665
Originally posted by alexprengere April 18, 2023
From the docs: https://www.python-httpx.org/advanced/#netrc-support
Using that snippet will yield the error:
Using
NetRCAuth(file=None)
fixes the issue, and produces the expected behavior, but perhaps it should be made the default value (I can open a PR).The text was updated successfully, but these errors were encountered: