Files
typeshed/stdlib/@python2/netrc.pyi
2022-03-19 14:27:35 +00:00

17 lines
515 B
Python

from typing import Text
class NetrcParseError(Exception):
filename: str | None
lineno: int | None
msg: str
def __init__(self, msg: str, filename: Text | None = ..., lineno: int | None = ...) -> None: ...
# (login, account, password) tuple
_NetrcTuple = tuple[str, str | None, str | None]
class netrc:
hosts: dict[str, _NetrcTuple]
macros: dict[str, list[str]]
def __init__(self, file: Text | None = ...) -> None: ...
def authenticators(self, host: str) -> _NetrcTuple | None: ...