lib.ec.ssh.Paramiko: Tolerate import-not-found
Tolera$te missing paramiko imports. jw-pkg is designed to work with what it finds and use plain /usr/bin/ssh if need be. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
4f91d47b25
commit
701d8a33e7
1 changed files with 5 additions and 3 deletions
|
|
@ -2,9 +2,11 @@ from __future__ import annotations
|
|||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import paramiko # type: ignore[import-untyped] # error: Library stubs not installed for "paramiko"
|
||||
import paramiko.agent # type: ignore[import-untyped]
|
||||
import paramiko.SCPClient # type: ignore[import-untyped]
|
||||
# Tolerate missing paramiko imports. jw-pkg is designed to work with what it
|
||||
# finds.
|
||||
import paramiko # type: ignore[import-untyped,import-not-found] # error: Library stubs not installed for "paramiko"
|
||||
import paramiko.agent # type: ignore[import-untyped,import-not-found]
|
||||
import paramiko.SCPClient # type: ignore[import-untyped,import-not-found]
|
||||
|
||||
from ...base import Result
|
||||
from ...log import ERR, log
|
||||
|
|
|
|||
Loading…
Reference in a new issue