This commit is contained in:
parent
4b5a92e88e
commit
c1cc6b2462
@ -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]:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user