Skip to content

Commit

Permalink
Fixes #2666: None is the default value of file for httpx.NetRCAuth (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprengere committed Apr 18, 2023
1 parent 4b5a92e commit c1cc6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpx/_auth.py
Expand Up @@ -147,7 +147,7 @@ class NetRCAuth(Auth):
Use a 'netrc' file to lookup basic auth credentials based on the url host.
"""

def __init__(self, file: typing.Optional[str]):
def __init__(self, file: typing.Optional[str] = None):
self._netrc_info = netrc.netrc(file)

def auth_flow(self, request: Request) -> typing.Generator[Request, Response, None]:
Expand Down

0 comments on commit c1cc6b2

Please sign in to comment.