mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-01 00:53:23 +08:00
Add default values for third-party stubs beginning with 'P' (#9957)
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
paramiko.SFTPServer.__init__
|
||||
paramiko.Transport.open_x11_channel
|
||||
paramiko.Transport.send_ignore
|
||||
paramiko.Transport.start_server
|
||||
paramiko.sftp_server.SFTPServer.__init__
|
||||
paramiko.transport.Transport.open_x11_channel
|
||||
paramiko.transport.Transport.send_ignore
|
||||
paramiko.transport.Transport.start_server
|
||||
paramiko.util.SupportsClose
|
||||
|
||||
@@ -10,7 +10,7 @@ if sys.platform == "win32":
|
||||
def format_system_message(errno: int) -> str | None: ...
|
||||
|
||||
class WindowsError(builtins.WindowsError):
|
||||
def __init__(self, value: int | None = ...) -> None: ...
|
||||
def __init__(self, value: int | None = None) -> None: ...
|
||||
@property
|
||||
def message(self) -> str: ...
|
||||
@property
|
||||
@@ -34,7 +34,7 @@ if sys.platform == "win32":
|
||||
pos: int
|
||||
filemap: Any = ...
|
||||
view: Any = ...
|
||||
def __init__(self, name: str, length: int, security_attributes: Incomplete | None = ...) -> None: ...
|
||||
def __init__(self, name: str, length: int, security_attributes: Incomplete | None = None) -> None: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def seek(self, pos: int) -> None: ...
|
||||
def write(self, msg: bytes) -> None: ...
|
||||
@@ -91,4 +91,4 @@ if sys.platform == "win32":
|
||||
def GetTokenInformation(token: Any, information_class: Any) -> Any: ...
|
||||
def OpenProcessToken(proc_handle: Any, access: Any) -> Any: ...
|
||||
def get_current_user() -> TOKEN_USER: ...
|
||||
def get_security_attributes_for_user(user: TOKEN_USER | None = ...) -> SECURITY_ATTRIBUTES: ...
|
||||
def get_security_attributes_for_user(user: TOKEN_USER | None = None) -> SECURITY_ATTRIBUTES: ...
|
||||
|
||||
@@ -64,4 +64,4 @@ class AgentKey(PKey):
|
||||
def __init__(self, agent: AgentSSH, blob: bytes) -> None: ...
|
||||
def asbytes(self) -> bytes: ...
|
||||
def get_name(self) -> str: ...
|
||||
def sign_ssh_data(self, data: bytes, algorithm: str | None = ...) -> Message: ...
|
||||
def sign_ssh_data(self, data: bytes, algorithm: str | None = None) -> Message: ...
|
||||
|
||||
@@ -29,7 +29,7 @@ class AuthHandler:
|
||||
def auth_none(self, username: str, event: Event) -> None: ...
|
||||
def auth_publickey(self, username: str, key: PKey, event: Event) -> None: ...
|
||||
def auth_password(self, username: str, password: str, event: Event) -> None: ...
|
||||
def auth_interactive(self, username: str, handler: _InteractiveCallback, event: Event, submethods: str = ...) -> None: ...
|
||||
def auth_interactive(self, username: str, handler: _InteractiveCallback, event: Event, submethods: str = "") -> None: ...
|
||||
def auth_gssapi_with_mic(self, username: str, gss_host: str, gss_deleg_creds: bool, event: Event) -> None: ...
|
||||
def auth_gssapi_keyex(self, username: str, event: Event) -> None: ...
|
||||
def abort(self) -> None: ...
|
||||
|
||||
@@ -6,7 +6,7 @@ class BERException(Exception): ...
|
||||
class BER:
|
||||
content: bytes
|
||||
idx: int
|
||||
def __init__(self, content: bytes = ...) -> None: ...
|
||||
def __init__(self, content: bytes = b"") -> None: ...
|
||||
def asbytes(self) -> bytes: ...
|
||||
def decode(self) -> None | int | list[int]: ...
|
||||
def decode_next(self) -> None | int | list[int]: ...
|
||||
|
||||
@@ -8,7 +8,7 @@ class BufferedPipe(Generic[AnyStr]):
|
||||
def set_event(self, event: Event) -> None: ...
|
||||
def feed(self, data: AnyStr) -> None: ...
|
||||
def read_ready(self) -> bool: ...
|
||||
def read(self, nbytes: int, timeout: float | None = ...) -> AnyStr: ...
|
||||
def read(self, nbytes: int, timeout: float | None = None) -> AnyStr: ...
|
||||
def empty(self) -> AnyStr: ...
|
||||
def close(self) -> None: ...
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
@@ -43,12 +43,12 @@ class Channel(ClosingContextManager):
|
||||
def __init__(self, chanid: int) -> None: ...
|
||||
def __del__(self) -> None: ...
|
||||
def get_pty(
|
||||
self, term: str | bytes = ..., width: int = ..., height: int = ..., width_pixels: int = ..., height_pixels: int = ...
|
||||
self, term: str | bytes = "vt100", width: int = 80, height: int = 24, width_pixels: int = 0, height_pixels: int = 0
|
||||
) -> None: ...
|
||||
def invoke_shell(self) -> None: ...
|
||||
def exec_command(self, command: str | bytes) -> None: ...
|
||||
def invoke_subsystem(self, subsystem: str | bytes) -> None: ...
|
||||
def resize_pty(self, width: int = ..., height: int = ..., width_pixels: int = ..., height_pixels: int = ...) -> None: ...
|
||||
def resize_pty(self, width: int = 80, height: int = 24, width_pixels: int = 0, height_pixels: int = 0) -> None: ...
|
||||
def update_environment(self, environment: Mapping[str | bytes, str | bytes]) -> None: ...
|
||||
def set_environment_variable(self, name: str | bytes, value: str | bytes) -> None: ...
|
||||
def exit_status_ready(self) -> bool: ...
|
||||
@@ -56,11 +56,11 @@ class Channel(ClosingContextManager):
|
||||
def send_exit_status(self, status: int) -> None: ...
|
||||
def request_x11(
|
||||
self,
|
||||
screen_number: int = ...,
|
||||
auth_protocol: str | bytes | None = ...,
|
||||
auth_cookie: str | bytes | None = ...,
|
||||
single_connection: bool = ...,
|
||||
handler: Callable[[Channel, tuple[str, int]], object] | None = ...,
|
||||
screen_number: int = 0,
|
||||
auth_protocol: str | bytes | None = None,
|
||||
auth_cookie: str | bytes | None = None,
|
||||
single_connection: bool = False,
|
||||
handler: Callable[[Channel, tuple[str, int]], object] | None = None,
|
||||
) -> bytes: ...
|
||||
def request_forward_agent(self, handler: Callable[[Channel], object]) -> bool: ...
|
||||
def get_transport(self) -> Transport: ...
|
||||
@@ -92,7 +92,7 @@ class Channel(ClosingContextManager):
|
||||
|
||||
class ChannelFile(BufferedFile[Any]):
|
||||
channel: Channel
|
||||
def __init__(self, channel: Channel, mode: str = ..., bufsize: int = ...) -> None: ...
|
||||
def __init__(self, channel: Channel, mode: str = "r", bufsize: int = -1) -> None: ...
|
||||
|
||||
class ChannelStderrFile(ChannelFile): ...
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class _TransportFactory(Protocol):
|
||||
|
||||
class SSHClient(ClosingContextManager):
|
||||
def __init__(self) -> None: ...
|
||||
def load_system_host_keys(self, filename: str | None = ...) -> None: ...
|
||||
def load_system_host_keys(self, filename: str | None = None) -> None: ...
|
||||
def load_host_keys(self, filename: str) -> None: ...
|
||||
def save_host_keys(self, filename: str) -> None: ...
|
||||
def get_host_keys(self) -> HostKeys: ...
|
||||
@@ -26,44 +26,44 @@ class SSHClient(ClosingContextManager):
|
||||
def connect(
|
||||
self,
|
||||
hostname: str,
|
||||
port: int = ...,
|
||||
username: str | None = ...,
|
||||
password: str | None = ...,
|
||||
pkey: PKey | None = ...,
|
||||
key_filename: str | None = ...,
|
||||
timeout: float | None = ...,
|
||||
allow_agent: bool = ...,
|
||||
look_for_keys: bool = ...,
|
||||
compress: bool = ...,
|
||||
sock: _SocketLike | None = ...,
|
||||
gss_auth: bool = ...,
|
||||
gss_kex: bool = ...,
|
||||
gss_deleg_creds: bool = ...,
|
||||
gss_host: str | None = ...,
|
||||
banner_timeout: float | None = ...,
|
||||
auth_timeout: float | None = ...,
|
||||
gss_trust_dns: bool = ...,
|
||||
passphrase: str | None = ...,
|
||||
disabled_algorithms: dict[str, Iterable[str]] | None = ...,
|
||||
transport_factory: _TransportFactory | None = ...,
|
||||
port: int = 22,
|
||||
username: str | None = None,
|
||||
password: str | None = None,
|
||||
pkey: PKey | None = None,
|
||||
key_filename: str | None = None,
|
||||
timeout: float | None = None,
|
||||
allow_agent: bool = True,
|
||||
look_for_keys: bool = True,
|
||||
compress: bool = False,
|
||||
sock: _SocketLike | None = None,
|
||||
gss_auth: bool = False,
|
||||
gss_kex: bool = False,
|
||||
gss_deleg_creds: bool = True,
|
||||
gss_host: str | None = None,
|
||||
banner_timeout: float | None = None,
|
||||
auth_timeout: float | None = None,
|
||||
gss_trust_dns: bool = True,
|
||||
passphrase: str | None = None,
|
||||
disabled_algorithms: dict[str, Iterable[str]] | None = None,
|
||||
transport_factory: _TransportFactory | None = None,
|
||||
) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def exec_command(
|
||||
self,
|
||||
command: str,
|
||||
bufsize: int = ...,
|
||||
timeout: float | None = ...,
|
||||
get_pty: bool = ...,
|
||||
environment: dict[str, str] | None = ...,
|
||||
bufsize: int = -1,
|
||||
timeout: float | None = None,
|
||||
get_pty: bool = False,
|
||||
environment: dict[str, str] | None = None,
|
||||
) -> tuple[ChannelStdinFile, ChannelFile, ChannelStderrFile]: ...
|
||||
def invoke_shell(
|
||||
self,
|
||||
term: str = ...,
|
||||
width: int = ...,
|
||||
height: int = ...,
|
||||
width_pixels: int = ...,
|
||||
height_pixels: int = ...,
|
||||
environment: Mapping[str, str] | None = ...,
|
||||
term: str = "vt100",
|
||||
width: int = 80,
|
||||
height: int = 24,
|
||||
width_pixels: int = 0,
|
||||
height_pixels: int = 0,
|
||||
environment: Mapping[str, str] | None = None,
|
||||
) -> Channel: ...
|
||||
def open_sftp(self) -> SFTPClient: ...
|
||||
def get_transport(self) -> Transport | None: ...
|
||||
|
||||
@@ -26,7 +26,7 @@ class LazyFqdn:
|
||||
fqdn: str | None
|
||||
config: SSHConfig
|
||||
host: str | None
|
||||
def __init__(self, config: SSHConfigDict, host: str | None = ...) -> None: ...
|
||||
def __init__(self, config: SSHConfigDict, host: str | None = None) -> None: ...
|
||||
|
||||
class SSHConfigDict(dict[str, str]):
|
||||
def as_bool(self, key: str) -> bool: ...
|
||||
|
||||
@@ -14,21 +14,21 @@ class DSSKey(PKey):
|
||||
size: int
|
||||
def __init__(
|
||||
self,
|
||||
msg: Message | None = ...,
|
||||
data: bytes | None = ...,
|
||||
filename: str | None = ...,
|
||||
password: str | None = ...,
|
||||
vals: tuple[int, int, int, int] | None = ...,
|
||||
file_obj: IO[str] | None = ...,
|
||||
msg: Message | None = None,
|
||||
data: bytes | None = None,
|
||||
filename: str | None = None,
|
||||
password: str | None = None,
|
||||
vals: tuple[int, int, int, int] | None = None,
|
||||
file_obj: IO[str] | None = None,
|
||||
) -> None: ...
|
||||
def asbytes(self) -> bytes: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def get_name(self) -> str: ...
|
||||
def get_bits(self) -> int: ...
|
||||
def can_sign(self) -> bool: ...
|
||||
def sign_ssh_data(self, data: bytes, algorithm: str | None = ...) -> Message: ...
|
||||
def sign_ssh_data(self, data: bytes, algorithm: str | None = None) -> Message: ...
|
||||
def verify_ssh_sig(self, data: bytes, msg: Message) -> bool: ...
|
||||
def write_private_key_file(self, filename: str, password: str | None = ...) -> None: ...
|
||||
def write_private_key(self, file_obj: IO[str], password: str | None = ...) -> None: ...
|
||||
def write_private_key_file(self, filename: str, password: str | None = None) -> None: ...
|
||||
def write_private_key(self, file_obj: IO[str], password: str | None = None) -> None: ...
|
||||
@staticmethod
|
||||
def generate(bits: int = ..., progress_func: Callable[..., object] | None = ...) -> DSSKey: ...
|
||||
def generate(bits: int = 1024, progress_func: Callable[..., object] | None = None) -> DSSKey: ...
|
||||
|
||||
@@ -29,13 +29,13 @@ class ECDSAKey(PKey):
|
||||
ecdsa_curve: _ECDSACurve | None
|
||||
def __init__(
|
||||
self,
|
||||
msg: Message | None = ...,
|
||||
data: bytes | None = ...,
|
||||
filename: str | None = ...,
|
||||
password: str | None = ...,
|
||||
vals: tuple[EllipticCurvePrivateKey, EllipticCurvePublicKey] | None = ...,
|
||||
file_obj: IO[str] | None = ...,
|
||||
validate_point: bool = ...,
|
||||
msg: Message | None = None,
|
||||
data: bytes | None = None,
|
||||
filename: str | None = None,
|
||||
password: str | None = None,
|
||||
vals: tuple[EllipticCurvePrivateKey, EllipticCurvePublicKey] | None = None,
|
||||
file_obj: IO[str] | None = None,
|
||||
validate_point: bool = True,
|
||||
) -> None: ...
|
||||
@classmethod
|
||||
def supported_key_format_identifiers(cls: Any) -> list[str]: ...
|
||||
@@ -44,11 +44,11 @@ class ECDSAKey(PKey):
|
||||
def get_name(self) -> str: ...
|
||||
def get_bits(self) -> int: ...
|
||||
def can_sign(self) -> bool: ...
|
||||
def sign_ssh_data(self, data: bytes, algorithm: str | None = ...) -> Message: ...
|
||||
def sign_ssh_data(self, data: bytes, algorithm: str | None = None) -> Message: ...
|
||||
def verify_ssh_sig(self, data: bytes, msg: Message) -> bool: ...
|
||||
def write_private_key_file(self, filename: str, password: str | None = ...) -> None: ...
|
||||
def write_private_key(self, file_obj: IO[str], password: str | None = ...) -> None: ...
|
||||
def write_private_key_file(self, filename: str, password: str | None = None) -> None: ...
|
||||
def write_private_key(self, file_obj: IO[str], password: str | None = None) -> None: ...
|
||||
@classmethod
|
||||
def generate(
|
||||
cls, curve: EllipticCurve = ..., progress_func: Callable[..., object] | None = ..., bits: int | None = ...
|
||||
cls, curve: EllipticCurve = ..., progress_func: Callable[..., object] | None = None, bits: int | None = None
|
||||
) -> ECDSAKey: ...
|
||||
|
||||
@@ -7,16 +7,16 @@ class Ed25519Key(PKey):
|
||||
public_blob: None
|
||||
def __init__(
|
||||
self,
|
||||
msg: Message | None = ...,
|
||||
data: bytes | None = ...,
|
||||
filename: str | None = ...,
|
||||
password: str | None = ...,
|
||||
file_obj: IO[str] | None = ...,
|
||||
msg: Message | None = None,
|
||||
data: bytes | None = None,
|
||||
filename: str | None = None,
|
||||
password: str | None = None,
|
||||
file_obj: IO[str] | None = None,
|
||||
) -> None: ...
|
||||
def asbytes(self) -> bytes: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def get_name(self) -> str: ...
|
||||
def get_bits(self) -> int: ...
|
||||
def can_sign(self) -> bool: ...
|
||||
def sign_ssh_data(self, data: bytes, algorithm: str | None = ...) -> Message: ...
|
||||
def sign_ssh_data(self, data: bytes, algorithm: str | None = None) -> Message: ...
|
||||
def verify_ssh_sig(self, data: bytes, msg: Message) -> bool: ...
|
||||
|
||||
@@ -27,10 +27,10 @@ class BufferedFile(ClosingContextManager, Generic[AnyStr]):
|
||||
def writable(self) -> bool: ...
|
||||
def seekable(self) -> bool: ...
|
||||
def readinto(self, buff: bytearray) -> int: ...
|
||||
def read(self, size: int | None = ...) -> bytes: ...
|
||||
def readline(self, size: int | None = ...) -> AnyStr: ...
|
||||
def readlines(self, sizehint: int | None = ...) -> list[AnyStr]: ...
|
||||
def seek(self, offset: int, whence: int = ...) -> None: ...
|
||||
def read(self, size: int | None = None) -> bytes: ...
|
||||
def readline(self, size: int | None = None) -> AnyStr: ...
|
||||
def readlines(self, sizehint: int | None = None) -> list[AnyStr]: ...
|
||||
def seek(self, offset: int, whence: int = 0) -> None: ...
|
||||
def tell(self) -> int: ...
|
||||
def write(self, data: AnyStr) -> None: ...
|
||||
def writelines(self, sequence: Iterable[AnyStr]) -> None: ...
|
||||
|
||||
@@ -14,7 +14,7 @@ class _SubDict(MutableMapping[str, PKey]):
|
||||
def keys(self) -> list[str]: ... # type: ignore[override]
|
||||
|
||||
class HostKeys(MutableMapping[str, _SubDict]):
|
||||
def __init__(self, filename: str | None = ...) -> None: ...
|
||||
def __init__(self, filename: str | None = None) -> None: ...
|
||||
def add(self, hostname: str, keytype: str, key: PKey) -> None: ...
|
||||
def load(self, filename: str) -> None: ...
|
||||
def save(self, filename: str) -> None: ...
|
||||
@@ -29,7 +29,7 @@ class HostKeys(MutableMapping[str, _SubDict]):
|
||||
def keys(self) -> list[str]: ... # type: ignore[override]
|
||||
def values(self) -> list[_SubDict]: ... # type: ignore[override]
|
||||
@staticmethod
|
||||
def hash_host(hostname: str, salt: str | None = ...) -> str: ...
|
||||
def hash_host(hostname: str, salt: str | None = None) -> str: ...
|
||||
|
||||
class InvalidHostKey(Exception):
|
||||
line: str
|
||||
@@ -40,7 +40,7 @@ class HostKeyEntry:
|
||||
valid: bool
|
||||
hostnames: list[str]
|
||||
key: PKey
|
||||
def __init__(self, hostnames: list[str] | None = ..., key: PKey | None = ...) -> None: ...
|
||||
def __init__(self, hostnames: list[str] | None = None, key: PKey | None = None) -> None: ...
|
||||
@classmethod
|
||||
def from_line(cls, line: str, lineno: int | None = ...) -> Self | None: ...
|
||||
def from_line(cls, line: str, lineno: int | None = None) -> Self | None: ...
|
||||
def to_line(self) -> str | None: ...
|
||||
|
||||
@@ -26,7 +26,7 @@ class KexGex:
|
||||
f: int | None
|
||||
old_style: bool
|
||||
def __init__(self, transport: Transport) -> None: ...
|
||||
def start_kex(self, _test_old_style: bool = ...) -> None: ...
|
||||
def start_kex(self, _test_old_style: bool = False) -> None: ...
|
||||
def parse_next(self, ptype: int, m: Message) -> None: ...
|
||||
|
||||
class KexGexSHA256(KexGex):
|
||||
|
||||
@@ -12,7 +12,7 @@ class Message:
|
||||
big_int: int
|
||||
packet: BytesIO
|
||||
seqno: int # only when packet.Packetizer.read_message() is used
|
||||
def __init__(self, content: bytes | None = ...) -> None: ...
|
||||
def __init__(self, content: bytes | None = None) -> None: ...
|
||||
def __bytes__(self) -> bytes: ...
|
||||
def asbytes(self) -> bytes: ...
|
||||
def rewind(self) -> None: ...
|
||||
|
||||
@@ -31,11 +31,17 @@ class Packetizer:
|
||||
mac_engine: _Hash,
|
||||
mac_size: int,
|
||||
mac_key: bytes,
|
||||
sdctr: bool = ...,
|
||||
etm: bool = ...,
|
||||
sdctr: bool = False,
|
||||
etm: bool = False,
|
||||
) -> None: ...
|
||||
def set_inbound_cipher(
|
||||
self, block_engine: Cipher[Incomplete], block_size: int, mac_engine: _Hash, mac_size: int, mac_key: bytes, etm: bool = ...
|
||||
self,
|
||||
block_engine: Cipher[Incomplete],
|
||||
block_size: int,
|
||||
mac_engine: _Hash,
|
||||
mac_size: int,
|
||||
mac_key: bytes,
|
||||
etm: bool = False,
|
||||
) -> None: ...
|
||||
def set_outbound_compressor(self, compressor: ZlibCompressor) -> None: ...
|
||||
def set_inbound_compressor(self, compressor: ZlibDecompressor) -> None: ...
|
||||
@@ -50,7 +56,7 @@ class Packetizer:
|
||||
def start_handshake(self, timeout: float) -> None: ...
|
||||
def handshake_timed_out(self) -> bool: ...
|
||||
def complete_handshake(self) -> None: ...
|
||||
def read_all(self, n: int, check_rekey: bool = ...) -> bytes: ...
|
||||
def read_all(self, n: int, check_rekey: bool = False) -> bytes: ...
|
||||
def write_all(self, out: bytes) -> None: ...
|
||||
def readline(self, timeout: float) -> str: ...
|
||||
def send_message(self, data: Message) -> None: ...
|
||||
|
||||
@@ -12,7 +12,7 @@ class PKey:
|
||||
public_blob: PublicBlob | None
|
||||
BEGIN_TAG: Pattern[str]
|
||||
END_TAG: Pattern[str]
|
||||
def __init__(self, msg: Message | None = ..., data: str | None = ...) -> None: ...
|
||||
def __init__(self, msg: Message | None = None, data: str | None = None) -> None: ...
|
||||
def asbytes(self) -> bytes: ...
|
||||
def __bytes__(self) -> bytes: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
@@ -21,21 +21,21 @@ class PKey:
|
||||
def can_sign(self) -> bool: ...
|
||||
def get_fingerprint(self) -> bytes: ...
|
||||
def get_base64(self) -> str: ...
|
||||
def sign_ssh_data(self, data: bytes, algorithm: str | None = ...) -> Message: ...
|
||||
def sign_ssh_data(self, data: bytes, algorithm: str | None = None) -> Message: ...
|
||||
def verify_ssh_sig(self, data: bytes, msg: Message) -> bool: ...
|
||||
@classmethod
|
||||
def from_private_key_file(cls, filename: str, password: str | None = ...) -> Self: ...
|
||||
def from_private_key_file(cls, filename: str, password: str | None = None) -> Self: ...
|
||||
@classmethod
|
||||
def from_private_key(cls, file_obj: IO[str], password: str | None = ...) -> Self: ...
|
||||
def write_private_key_file(self, filename: str, password: str | None = ...) -> None: ...
|
||||
def write_private_key(self, file_obj: IO[str], password: str | None = ...) -> None: ...
|
||||
def from_private_key(cls, file_obj: IO[str], password: str | None = None) -> Self: ...
|
||||
def write_private_key_file(self, filename: str, password: str | None = None) -> None: ...
|
||||
def write_private_key(self, file_obj: IO[str], password: str | None = None) -> None: ...
|
||||
def load_certificate(self, value: Message | str) -> None: ...
|
||||
|
||||
class PublicBlob:
|
||||
key_type: str
|
||||
key_blob: str
|
||||
comment: str
|
||||
def __init__(self, type_: str, blob: bytes, comment: str | None = ...) -> None: ...
|
||||
def __init__(self, type_: str, blob: bytes, comment: str | None = None) -> None: ...
|
||||
@classmethod
|
||||
def from_file(cls, filename: str) -> Self: ...
|
||||
@classmethod
|
||||
|
||||
@@ -10,12 +10,12 @@ class RSAKey(PKey):
|
||||
public_blob: None
|
||||
def __init__(
|
||||
self,
|
||||
msg: Message | None = ...,
|
||||
data: bytes | None = ...,
|
||||
filename: str | None = ...,
|
||||
password: str | None = ...,
|
||||
key: None | RSAPublicKey | RSAPrivateKey = ...,
|
||||
file_obj: IO[str] | None = ...,
|
||||
msg: Message | None = None,
|
||||
data: bytes | None = None,
|
||||
filename: str | None = None,
|
||||
password: str | None = None,
|
||||
key: None | RSAPublicKey | RSAPrivateKey = None,
|
||||
file_obj: IO[str] | None = None,
|
||||
) -> None: ...
|
||||
@property
|
||||
def size(self) -> int: ...
|
||||
@@ -26,9 +26,9 @@ class RSAKey(PKey):
|
||||
def get_name(self) -> str: ...
|
||||
def get_bits(self) -> int: ...
|
||||
def can_sign(self) -> bool: ...
|
||||
def sign_ssh_data(self, data: bytes, algorithm: str = ...) -> Message: ... # type: ignore[override]
|
||||
def sign_ssh_data(self, data: bytes, algorithm: str = "ssh-rsa") -> Message: ... # type: ignore[override]
|
||||
def verify_ssh_sig(self, data: bytes, msg: Message) -> bool: ...
|
||||
def write_private_key_file(self, filename: str, password: str | None = ...) -> None: ...
|
||||
def write_private_key(self, file_obj: IO[str], password: str | None = ...) -> None: ...
|
||||
def write_private_key_file(self, filename: str, password: str | None = None) -> None: ...
|
||||
def write_private_key(self, file_obj: IO[str], password: str | None = None) -> None: ...
|
||||
@staticmethod
|
||||
def generate(bits: int, progress_func: Callable[..., object] | None = ...) -> RSAKey: ...
|
||||
def generate(bits: int, progress_func: Callable[..., object] | None = None) -> RSAKey: ...
|
||||
|
||||
@@ -13,8 +13,8 @@ class ServerInterface:
|
||||
def check_auth_publickey(self, username: str, key: PKey) -> int: ...
|
||||
def check_auth_interactive(self, username: str, submethods: str) -> int | InteractiveQuery: ...
|
||||
def check_auth_interactive_response(self, responses: list[str]) -> int | InteractiveQuery: ...
|
||||
def check_auth_gssapi_with_mic(self, username: str, gss_authenticated: int = ..., cc_file: str | None = ...) -> int: ...
|
||||
def check_auth_gssapi_keyex(self, username: str, gss_authenticated: int = ..., cc_file: str | None = ...) -> int: ...
|
||||
def check_auth_gssapi_with_mic(self, username: str, gss_authenticated: int = 2, cc_file: str | None = None) -> int: ...
|
||||
def check_auth_gssapi_keyex(self, username: str, gss_authenticated: int = 2, cc_file: str | None = None) -> int: ...
|
||||
def enable_auth_gssapi(self) -> bool: ...
|
||||
def check_port_forward_request(self, address: str, port: int) -> int: ...
|
||||
def cancel_port_forward_request(self, address: str, port: int) -> None: ...
|
||||
@@ -40,8 +40,8 @@ class InteractiveQuery:
|
||||
name: str
|
||||
instructions: str
|
||||
prompts: list[tuple[str, bool]]
|
||||
def __init__(self, name: str = ..., instructions: str = ..., *prompts: str | tuple[str, bool]) -> None: ...
|
||||
def add_prompt(self, prompt: str, echo: bool = ...) -> None: ...
|
||||
def __init__(self, name: str = "", instructions: str = "", *prompts: str | tuple[str, bool]) -> None: ...
|
||||
def add_prompt(self, prompt: str, echo: bool = True) -> None: ...
|
||||
|
||||
class SubsystemHandler(threading.Thread):
|
||||
def __init__(self, channel: Channel, name: str, server: ServerInterface) -> None: ...
|
||||
|
||||
@@ -18,5 +18,5 @@ class SFTPAttributes:
|
||||
attr: dict[str, str]
|
||||
def __init__(self) -> None: ...
|
||||
@classmethod
|
||||
def from_stat(cls, obj: stat_result, filename: str | None = ...) -> Self: ...
|
||||
def from_stat(cls, obj: stat_result, filename: str | None = None) -> Self: ...
|
||||
def asbytes(self) -> bytes: ...
|
||||
|
||||
@@ -21,19 +21,19 @@ class SFTPClient(BaseSFTP, ClosingContextManager):
|
||||
logger: Logger
|
||||
def __init__(self, sock: Channel) -> None: ...
|
||||
@classmethod
|
||||
def from_transport(cls, t: Transport, window_size: int | None = ..., max_packet_size: int | None = ...) -> Self | None: ...
|
||||
def from_transport(cls, t: Transport, window_size: int | None = None, max_packet_size: int | None = None) -> Self | None: ...
|
||||
def close(self) -> None: ...
|
||||
def get_channel(self) -> Channel | None: ...
|
||||
def listdir(self, path: str = ...) -> list[str]: ...
|
||||
def listdir_attr(self, path: str = ...) -> list[SFTPAttributes]: ...
|
||||
def listdir_iter(self, path: bytes | str = ..., read_aheads: int = ...) -> Iterator[SFTPAttributes]: ...
|
||||
def open(self, filename: bytes | str, mode: str = ..., bufsize: int = ...) -> SFTPFile: ...
|
||||
def listdir(self, path: str = ".") -> list[str]: ...
|
||||
def listdir_attr(self, path: str = ".") -> list[SFTPAttributes]: ...
|
||||
def listdir_iter(self, path: bytes | str = ".", read_aheads: int = 50) -> Iterator[SFTPAttributes]: ...
|
||||
def open(self, filename: bytes | str, mode: str = "r", bufsize: int = -1) -> SFTPFile: ...
|
||||
file = open
|
||||
def remove(self, path: bytes | str) -> None: ...
|
||||
unlink = remove
|
||||
def rename(self, oldpath: bytes | str, newpath: bytes | str) -> None: ...
|
||||
def posix_rename(self, oldpath: bytes | str, newpath: bytes | str) -> None: ...
|
||||
def mkdir(self, path: bytes | str, mode: int = ...) -> None: ...
|
||||
def mkdir(self, path: bytes | str, mode: int = 511) -> None: ...
|
||||
def rmdir(self, path: bytes | str) -> None: ...
|
||||
def stat(self, path: bytes | str) -> SFTPAttributes: ...
|
||||
def lstat(self, path: bytes | str) -> SFTPAttributes: ...
|
||||
@@ -44,17 +44,17 @@ class SFTPClient(BaseSFTP, ClosingContextManager):
|
||||
def truncate(self, path: bytes | str, size: int) -> None: ...
|
||||
def readlink(self, path: bytes | str) -> str | None: ...
|
||||
def normalize(self, path: bytes | str) -> str: ...
|
||||
def chdir(self, path: None | bytes | str = ...) -> None: ...
|
||||
def chdir(self, path: None | bytes | str = None) -> None: ...
|
||||
def getcwd(self) -> str | None: ...
|
||||
def putfo(
|
||||
self, fl: IO[bytes], remotepath: bytes | str, file_size: int = ..., callback: _Callback | None = ..., confirm: bool = ...
|
||||
self, fl: IO[bytes], remotepath: bytes | str, file_size: int = 0, callback: _Callback | None = None, confirm: bool = True
|
||||
) -> SFTPAttributes: ...
|
||||
def put(
|
||||
self, localpath: bytes | str, remotepath: bytes | str, callback: _Callback | None = ..., confirm: bool = ...
|
||||
self, localpath: bytes | str, remotepath: bytes | str, callback: _Callback | None = None, confirm: bool = True
|
||||
) -> SFTPAttributes: ...
|
||||
def getfo(self, remotepath: bytes | str, fl: IO[bytes], callback: _Callback | None = ..., prefetch: bool = ...) -> int: ...
|
||||
def getfo(self, remotepath: bytes | str, fl: IO[bytes], callback: _Callback | None = None, prefetch: bool = True) -> int: ...
|
||||
def get(
|
||||
self, remotepath: bytes | str, localpath: bytes | str, callback: _Callback | None = ..., prefetch: bool = ...
|
||||
self, remotepath: bytes | str, localpath: bytes | str, callback: _Callback | None = None, prefetch: bool = True
|
||||
) -> None: ...
|
||||
|
||||
class SFTP(SFTPClient): ...
|
||||
|
||||
@@ -11,20 +11,20 @@ class SFTPFile(BufferedFile[Any]):
|
||||
sftp: SFTPClient
|
||||
handle: SFTPHandle
|
||||
pipelined: bool
|
||||
def __init__(self, sftp: SFTPClient, handle: bytes, mode: str = ..., bufsize: int = ...) -> None: ...
|
||||
def __init__(self, sftp: SFTPClient, handle: bytes, mode: str = "r", bufsize: int = -1) -> None: ...
|
||||
def __del__(self) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def settimeout(self, timeout: float) -> None: ...
|
||||
def gettimeout(self) -> float: ...
|
||||
def setblocking(self, blocking: bool) -> None: ...
|
||||
def seekable(self) -> bool: ...
|
||||
def seek(self, offset: int, whence: int = ...) -> None: ...
|
||||
def seek(self, offset: int, whence: int = 0) -> None: ...
|
||||
def stat(self) -> SFTPAttributes: ...
|
||||
def chmod(self, mode: int) -> None: ...
|
||||
def chown(self, uid: int, gid: int) -> None: ...
|
||||
def utime(self, times: tuple[float, float] | None) -> None: ...
|
||||
def truncate(self, size: int) -> None: ...
|
||||
def check(self, hash_algorithm: str, offset: int = ..., length: int = ..., block_size: int = ...) -> bytes: ...
|
||||
def set_pipelined(self, pipelined: bool = ...) -> None: ...
|
||||
def prefetch(self, file_size: int | None = ...) -> None: ...
|
||||
def check(self, hash_algorithm: str, offset: int = 0, length: int = 0, block_size: int = 0) -> bytes: ...
|
||||
def set_pipelined(self, pipelined: bool = True) -> None: ...
|
||||
def prefetch(self, file_size: int | None = None) -> None: ...
|
||||
def readv(self, chunks: Sequence[tuple[int, int]]) -> Iterator[bytes]: ...
|
||||
|
||||
@@ -2,7 +2,7 @@ from paramiko.sftp_attr import SFTPAttributes
|
||||
from paramiko.util import ClosingContextManager
|
||||
|
||||
class SFTPHandle(ClosingContextManager):
|
||||
def __init__(self, flags: int = ...) -> None: ...
|
||||
def __init__(self, flags: int = 0) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def read(self, offset: int, length: int) -> bytes | int: ...
|
||||
def write(self, offset: int, data: bytes) -> int: ...
|
||||
|
||||
@@ -3,24 +3,24 @@ from typing import Any
|
||||
GSS_AUTH_AVAILABLE: bool
|
||||
GSS_EXCEPTIONS: tuple[type[Exception], ...]
|
||||
|
||||
def GSSAuth(auth_method: str, gss_deleg_creds: bool = ...) -> _SSH_GSSAuth: ...
|
||||
def GSSAuth(auth_method: str, gss_deleg_creds: bool = True) -> _SSH_GSSAuth: ...
|
||||
|
||||
class _SSH_GSSAuth:
|
||||
cc_file: None
|
||||
def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
|
||||
def set_service(self, service: str) -> None: ...
|
||||
def set_username(self, username: str) -> None: ...
|
||||
def ssh_gss_oids(self, mode: str = ...) -> bytes: ...
|
||||
def ssh_gss_oids(self, mode: str = "client") -> bytes: ...
|
||||
def ssh_check_mech(self, desired_mech: str) -> bool: ...
|
||||
|
||||
class _SSH_GSSAPI_OLD(_SSH_GSSAuth):
|
||||
def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
|
||||
def ssh_init_sec_context(
|
||||
self, target: str, desired_mech: str | None = ..., username: str | None = ..., recv_token: str | None = ...
|
||||
self, target: str, desired_mech: str | None = None, username: str | None = None, recv_token: str | None = None
|
||||
) -> str | None: ...
|
||||
def ssh_get_mic(self, session_id: bytes, gss_kex: bool = ...) -> Any: ...
|
||||
def ssh_accept_sec_context(self, hostname: str, recv_token: str, username: str | None = ...) -> str | None: ...
|
||||
def ssh_check_mic(self, mic_token: str, session_id: bytes, username: str | None = ...) -> None: ...
|
||||
def ssh_get_mic(self, session_id: bytes, gss_kex: bool = False) -> Any: ...
|
||||
def ssh_accept_sec_context(self, hostname: str, recv_token: str, username: str | None = None) -> str | None: ...
|
||||
def ssh_check_mic(self, mic_token: str, session_id: bytes, username: str | None = None) -> None: ...
|
||||
@property
|
||||
def credentials_delegated(self) -> bool: ...
|
||||
def save_client_creds(self, client_token: str) -> None: ...
|
||||
@@ -30,11 +30,11 @@ _SSH_GSSAPI = _SSH_GSSAPI_OLD
|
||||
class _SSH_GSSAPI_NEW(_SSH_GSSAuth):
|
||||
def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
|
||||
def ssh_init_sec_context(
|
||||
self, target: str, desired_mech: str | None = ..., username: str | None = ..., recv_token: str | None = ...
|
||||
self, target: str, desired_mech: str | None = None, username: str | None = None, recv_token: str | None = None
|
||||
) -> str: ...
|
||||
def ssh_get_mic(self, session_id: bytes, gss_kex: bool = ...) -> Any: ...
|
||||
def ssh_accept_sec_context(self, hostname: str, recv_token: str, username: str | None = ...) -> str | None: ...
|
||||
def ssh_check_mic(self, mic_token: str, session_id: bytes, username: str | None = ...) -> None: ...
|
||||
def ssh_get_mic(self, session_id: bytes, gss_kex: bool = False) -> Any: ...
|
||||
def ssh_accept_sec_context(self, hostname: str, recv_token: str, username: str | None = None) -> str | None: ...
|
||||
def ssh_check_mic(self, mic_token: str, session_id: bytes, username: str | None = None) -> None: ...
|
||||
@property
|
||||
def credentials_delegated(self) -> bool: ...
|
||||
def save_client_creds(self, client_token: str) -> None: ...
|
||||
@@ -42,11 +42,11 @@ class _SSH_GSSAPI_NEW(_SSH_GSSAuth):
|
||||
class _SSH_SSPI(_SSH_GSSAuth):
|
||||
def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
|
||||
def ssh_init_sec_context(
|
||||
self, target: str, desired_mech: str | None = ..., username: str | None = ..., recv_token: str | None = ...
|
||||
self, target: str, desired_mech: str | None = None, username: str | None = None, recv_token: str | None = None
|
||||
) -> str: ...
|
||||
def ssh_get_mic(self, session_id: bytes, gss_kex: bool = ...) -> Any: ...
|
||||
def ssh_get_mic(self, session_id: bytes, gss_kex: bool = False) -> Any: ...
|
||||
def ssh_accept_sec_context(self, hostname: str, username: str, recv_token: str) -> str | None: ...
|
||||
def ssh_check_mic(self, mic_token: str, session_id: bytes, username: str | None = ...) -> None: ...
|
||||
def ssh_check_mic(self, mic_token: str, session_id: bytes, username: str | None = None) -> None: ...
|
||||
@property
|
||||
def credentials_delegated(self) -> bool: ...
|
||||
def save_client_creds(self, client_token: str) -> None: ...
|
||||
|
||||
@@ -75,12 +75,12 @@ class Transport(Thread, ClosingContextManager):
|
||||
def __init__(
|
||||
self,
|
||||
sock: _SocketLike,
|
||||
default_window_size: int = ...,
|
||||
default_max_packet_size: int = ...,
|
||||
gss_kex: bool = ...,
|
||||
gss_deleg_creds: bool = ...,
|
||||
disabled_algorithms: dict[str, Iterable[str]] | None = ...,
|
||||
server_sig_algs: bool = ...,
|
||||
default_window_size: int = 2097152,
|
||||
default_max_packet_size: int = 32768,
|
||||
gss_kex: bool = False,
|
||||
gss_deleg_creds: bool = True,
|
||||
disabled_algorithms: dict[str, Iterable[str]] | None = None,
|
||||
server_sig_algs: bool = True,
|
||||
) -> None: ...
|
||||
@property
|
||||
def preferred_ciphers(self) -> Sequence[str]: ...
|
||||
@@ -94,52 +94,52 @@ class Transport(Thread, ClosingContextManager):
|
||||
def preferred_compression(self) -> Sequence[str]: ...
|
||||
def atfork(self) -> None: ...
|
||||
def get_security_options(self) -> SecurityOptions: ...
|
||||
def set_gss_host(self, gss_host: str | None, trust_dns: bool = ..., gssapi_requested: bool = ...) -> None: ...
|
||||
def start_client(self, event: Event | None = ..., timeout: float | None = ...) -> None: ...
|
||||
def start_server(self, event: Event = ..., server: ServerInterface | None = ...) -> None: ...
|
||||
def set_gss_host(self, gss_host: str | None, trust_dns: bool = True, gssapi_requested: bool = True) -> None: ...
|
||||
def start_client(self, event: Event | None = None, timeout: float | None = None) -> None: ...
|
||||
def start_server(self, event: Event | None = None, server: ServerInterface | None = None) -> None: ...
|
||||
def add_server_key(self, key: PKey) -> None: ...
|
||||
def get_server_key(self) -> PKey | None: ...
|
||||
@staticmethod
|
||||
def load_server_moduli(filename: str | None = ...) -> bool: ...
|
||||
def load_server_moduli(filename: str | None = None) -> bool: ...
|
||||
def close(self) -> None: ...
|
||||
def get_remote_server_key(self) -> PKey: ...
|
||||
def is_active(self) -> bool: ...
|
||||
def open_session(
|
||||
self, window_size: int | None = ..., max_packet_size: int | None = ..., timeout: float | None = ...
|
||||
self, window_size: int | None = None, max_packet_size: int | None = None, timeout: float | None = None
|
||||
) -> Channel: ...
|
||||
def open_x11_channel(self, src_addr: _Addr = ...) -> Channel: ...
|
||||
def open_x11_channel(self, src_addr: _Addr | None = None) -> Channel: ...
|
||||
def open_forward_agent_channel(self) -> Channel: ...
|
||||
def open_forwarded_tcpip_channel(self, src_addr: _Addr, dest_addr: _Addr) -> Channel: ...
|
||||
def open_channel(
|
||||
self,
|
||||
kind: str,
|
||||
dest_addr: _Addr | None = ...,
|
||||
src_addr: _Addr | None = ...,
|
||||
window_size: int | None = ...,
|
||||
max_packet_size: int | None = ...,
|
||||
timeout: float | None = ...,
|
||||
dest_addr: _Addr | None = None,
|
||||
src_addr: _Addr | None = None,
|
||||
window_size: int | None = None,
|
||||
max_packet_size: int | None = None,
|
||||
timeout: float | None = None,
|
||||
) -> Channel: ...
|
||||
def request_port_forward(
|
||||
self, address: str, port: int, handler: Callable[[Channel, _Addr, _Addr], object] | None = ...
|
||||
self, address: str, port: int, handler: Callable[[Channel, _Addr, _Addr], object] | None = None
|
||||
) -> int: ...
|
||||
def cancel_port_forward(self, address: str, port: int) -> None: ...
|
||||
def open_sftp_client(self) -> SFTPClient | None: ...
|
||||
def send_ignore(self, byte_count: int = ...) -> None: ...
|
||||
def send_ignore(self, byte_count: int | None = None) -> None: ...
|
||||
def renegotiate_keys(self) -> None: ...
|
||||
def set_keepalive(self, interval: int) -> None: ...
|
||||
def global_request(self, kind: str, data: Iterable[Any] | None = ..., wait: bool = ...) -> Message | None: ...
|
||||
def accept(self, timeout: float | None = ...) -> Channel | None: ...
|
||||
def global_request(self, kind: str, data: Iterable[Any] | None = None, wait: bool = True) -> Message | None: ...
|
||||
def accept(self, timeout: float | None = None) -> Channel | None: ...
|
||||
def connect(
|
||||
self,
|
||||
hostkey: PKey | None = ...,
|
||||
username: str = ...,
|
||||
password: str | None = ...,
|
||||
pkey: PKey | None = ...,
|
||||
gss_host: str | None = ...,
|
||||
gss_auth: bool = ...,
|
||||
gss_kex: bool = ...,
|
||||
gss_deleg_creds: bool = ...,
|
||||
gss_trust_dns: bool = ...,
|
||||
hostkey: PKey | None = None,
|
||||
username: str = "",
|
||||
password: str | None = None,
|
||||
pkey: PKey | None = None,
|
||||
gss_host: str | None = None,
|
||||
gss_auth: bool = False,
|
||||
gss_kex: bool = False,
|
||||
gss_deleg_creds: bool = True,
|
||||
gss_trust_dns: bool = True,
|
||||
) -> None: ...
|
||||
def get_exception(self) -> Exception | None: ...
|
||||
def set_subsystem_handler(self, name: str, handler: type[SubsystemHandler], *larg: Any, **kwarg: Any) -> None: ...
|
||||
@@ -147,11 +147,11 @@ class Transport(Thread, ClosingContextManager):
|
||||
def get_username(self) -> str | None: ...
|
||||
def get_banner(self) -> bytes | None: ...
|
||||
def auth_none(self, username: str) -> list[str]: ...
|
||||
def auth_password(self, username: str, password: str, event: Event | None = ..., fallback: bool = ...) -> list[str]: ...
|
||||
def auth_publickey(self, username: str, key: PKey, event: Event | None = ...) -> list[str]: ...
|
||||
def auth_interactive(self, username: str, handler: _InteractiveCallback, submethods: str = ...) -> list[str]: ...
|
||||
def auth_password(self, username: str, password: str, event: Event | None = None, fallback: bool = True) -> list[str]: ...
|
||||
def auth_publickey(self, username: str, key: PKey, event: Event | None = None) -> list[str]: ...
|
||||
def auth_interactive(self, username: str, handler: _InteractiveCallback, submethods: str = "") -> list[str]: ...
|
||||
def auth_interactive_dumb(
|
||||
self, username: str, handler: _InteractiveCallback | None = ..., submethods: str = ...
|
||||
self, username: str, handler: _InteractiveCallback | None = None, submethods: str = ""
|
||||
) -> list[str]: ...
|
||||
def auth_gssapi_with_mic(self, username: str, gss_host: str, gss_deleg_creds: bool) -> list[str]: ...
|
||||
def auth_gssapi_keyex(self, username: str) -> list[str]: ...
|
||||
@@ -159,7 +159,7 @@ class Transport(Thread, ClosingContextManager):
|
||||
def get_log_channel(self) -> str: ...
|
||||
def set_hexdump(self, hexdump: bool) -> None: ...
|
||||
def get_hexdump(self) -> bool: ...
|
||||
def use_compression(self, compress: bool = ...) -> None: ...
|
||||
def use_compression(self, compress: bool = True) -> None: ...
|
||||
def getpeername(self) -> tuple[str, int]: ...
|
||||
def stop_thread(self) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
|
||||
@@ -10,9 +10,9 @@ from paramiko.hostkeys import HostKeys
|
||||
class SupportsClose(Protocol):
|
||||
def close(self) -> None: ...
|
||||
|
||||
def inflate_long(s: bytes, always_positive: bool = ...) -> int: ...
|
||||
def deflate_long(n: int, add_sign_padding: bool = ...) -> bytes: ...
|
||||
def format_binary(data: bytes, prefix: str = ...) -> list[str]: ...
|
||||
def inflate_long(s: bytes, always_positive: bool = False) -> int: ...
|
||||
def deflate_long(n: int, add_sign_padding: bool = True) -> bytes: ...
|
||||
def format_binary(data: bytes, prefix: str = "") -> list[str]: ...
|
||||
def format_binary_line(data: bytes) -> str: ...
|
||||
def safe_string(s: bytes) -> bytes: ...
|
||||
def bit_length(n: int) -> int: ...
|
||||
@@ -23,7 +23,7 @@ def parse_ssh_config(file_obj: IO[str]) -> SSHConfig: ...
|
||||
def lookup_ssh_host_config(hostname: str, config: SSHConfig) -> SSHConfigDict: ...
|
||||
def mod_inverse(x: int, m: int) -> int: ...
|
||||
def get_thread_id() -> int: ...
|
||||
def log_to_file(filename: str, level: int = ...) -> None: ...
|
||||
def log_to_file(filename: str, level: int = 10) -> None: ...
|
||||
|
||||
class PFilter:
|
||||
def filter(self, record: LogRecord) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user