massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / netrc.pyi
1 from _typeshed import StrOrBytesPath
2 from typing import Optional, Tuple
3
4 class NetrcParseError(Exception):
5     filename: str | None
6     lineno: int | None
7     msg: str
8     def __init__(self, msg: str, filename: StrOrBytesPath | None = ..., lineno: int | None = ...) -> None: ...
9
10 # (login, account, password) tuple
11 _NetrcTuple = Tuple[str, Optional[str], Optional[str]]
12
13 class netrc:
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: ...