1 from _typeshed import StrOrBytesPath
2 from typing import Optional, Tuple
4 class NetrcParseError(Exception):
8 def __init__(self, msg: str, filename: StrOrBytesPath | None = ..., lineno: int | None = ...) -> None: ...
10 # (login, account, password) tuple
11 _NetrcTuple = Tuple[str, Optional[str], Optional[str]]
14 hosts: dict[str, _NetrcTuple]
15 macros: dict[str, list[str]]
16 def __init__(self, file: StrOrBytesPath | None = ...) -> None: ...
17 def authenticators(self, host: str) -> _NetrcTuple | None: ...