1 from typing import IO, Any, Dict, Iterable, Pattern
3 from paramiko.ssh_exception import ConfigParseError as ConfigParseError, CouldNotCanonicalize as CouldNotCanonicalize
8 SETTINGS_REGEX: Pattern[str]
9 TOKENS_BY_CONFIG_KEY: dict[str, list[str]]
10 def __init__(self) -> None: ...
12 def from_text(cls, text: str) -> SSHConfig: ...
14 def from_path(cls, path: str) -> SSHConfig: ...
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]: ...
26 def __init__(self, config: SSHConfigDict, host: str | None = ...) -> None: ...
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: ...