massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / paramiko / paramiko / config.pyi
1 from typing import IO, Any, Dict, Iterable, Pattern
2
3 from paramiko.ssh_exception import ConfigParseError as ConfigParseError, CouldNotCanonicalize as CouldNotCanonicalize
4
5 SSH_PORT: int
6
7 class SSHConfig:
8     SETTINGS_REGEX: Pattern[str]
9     TOKENS_BY_CONFIG_KEY: dict[str, list[str]]
10     def __init__(self) -> None: ...
11     @classmethod
12     def from_text(cls, text: str) -> SSHConfig: ...
13     @classmethod
14     def from_path(cls, path: str) -> SSHConfig: ...
15     @classmethod
16     def from_file(cls, flo: IO[str]) -> SSHConfig: ...
17     def parse(self, file_obj: IO[str]) -> None: ...
18     def lookup(self, hostname: str) -> SSHConfigDict: ...
19     def canonicalize(self, hostname: str, options: SSHConfigDict, domains: Iterable[str]) -> str: ...
20     def get_hostnames(self) -> set[str]: ...
21
22 class LazyFqdn:
23     fqdn: str | None
24     config: SSHConfig
25     host: str | None
26     def __init__(self, config: SSHConfigDict, host: str | None = ...) -> None: ...
27
28 class SSHConfigDict(Dict[str, str]):
29     def __init__(self, *args: Any, **kwargs: Any) -> None: ...
30     def as_bool(self, key: str) -> bool: ...
31     def as_int(self, key: str) -> int: ...